-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance problem on Firefox if video is placed in a room #3470
Comments
Jim's case: Windows, Nvidia RTX 2080
Dom's case: Linux, NVidia RTX 2080
(In Dom's case, I guess the performance problem on Firefox seems from generic (JS engine?) issue rather than video stuffs.) |
Reported to bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1680851 |
The upstream I do think we should re-introduce a FPS cap on video frame uploads.. We had one at some point but it has been removed, and I can't really remember why. Hard limiting to something like 30 FPS should at least help mitigate this problem a bit. Ultimately this problem eventually goes away with https://www.khronos.org/registry/webgl/extensions/proposals/WEBGL_video_texture/ since this will prevent the need for the GPU -> CPU -> GPU copy of video frames going on now with the current pipeline, but that's probably a long ways off from being usable. |
360 videos are especially bad, they bring Firefox down to ~5 FPS which makes that feature unusable for me. |
There might be a chance that video play performance on Firefox can be improved by setting the video texture format RGBA. |
Wow, RGBA format works really well on my end. 15 fps became 60fps. 11.2MB mp4 video + desktop Windows.
|
Holy cow, same result here on the big 360 video I was having trouble with. Went from 5 FPS to just under 60 FPS. Great find @takahirox! |
The root issue may have been resolved on Firefox end. https://bugzilla.mozilla.org/show_bug.cgi?id=1680851 We should test again and remove the workaround if we confirm it's fixed. |
I tested on Windows Firefox Nightly. Unfortunately the problem hasn't been resolved yet. |
We may want to aim to make most things RGBA anyway even if this issue does get fixed in Firefox, as many platforms end up emulating RGB (not specific to videos): https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/WebGL_best_practices#some_formats_e.g._rgb_may_be_emulated |
Upstream Three.js seemed to have removed https://github.com/mrdoob/three.js/wiki/Migration-Guide#136--137 |
Will remove the workaround in b89f1e7 |
Description
FPS number in a room is significantly worse on Firefox if video is placed in a room.
To Reproduce
Access this "room with video"
https://hubs.mozilla.com/rc7gbkQ/crazy-honored-nation
And also access this "room without video"
https://hubs.mozilla.com/PsvaJ6i/clear-authentic-space
And compare the fps number displayed at the bottom right.
In my Desktop Windows with NVIDIA GeForce GTX 1080
Expected behavior
The fps number in a "room with video" on Firefox should be as good as the one on Chrome.
Hardware
Additional context
Add any other context about the problem here.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: