Add workaround for Firefox video play performance issue #4210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From #3470 (comment) and the following comments.
Firefox seems to have video play (or decode) performance issue. The FPS number becomes very bad if videos are played in viewport on Firefox.
In Three.js repo, it has been reported that somehow setting RGBA format to video texture improves the performance very well. (I guess it can avoid slow decoding in browser?).
The ticket has been opened for the performance issue in bugzilla but I don't think it can be resolved soon. So I would like to suggest to set RGBA format for Firefox as workaround so far.
11.2MB mp4 video + desktop Windows + NVIDIA GeForce GTX 1080.
Ideally we should test on more platforms (Mac, Mobile, other graphics boards and so on). I would be happy if you test on your end, too.