-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
[PLAYER] Investigate video.js background tab high CPU usage #135
Comments
investigation branch: https://github.com/bitwave-tv/bitwave/tree/investigate/video-js |
Here's a code profile comparison, v7.7.5 is substantially slower upon tab focus compared to v.7.6.6, and it appears to be related to an anonymous function call that calls functions such as Next step may be to fork 7.6.6 and revert the PR linked above and compare. |
Submitted PR with fix: videojs/video.js#6621 |
Install temporary dev package with |
published on npm, install with: |
Investigate video.js memory leak.
When bitwave tab is in background, RAF's are potentially queued and attempt to immediately all fire at once once tab regains focus. This causes a large amount of CPU usage and freezes the entire page until all RAF's have completed. The longer a page is in the background, the longer the wait will likely be.
Initial assumptions are that this had been fixed in 7.6.x, and re-introduced with 7.7.x
video.js issue being tracked: videojs/video.js#5937
Assumed to be the breaking PR: videojs/video.js#6155
Investigate and confirm functionality for 7.6.6 build compared to 7.7.0 build.
The text was updated successfully, but these errors were encountered: