Skip to content
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

Block background throttling of video processing #2746

Closed
wants to merge 2 commits into from

Conversation

hunnorth
Copy link
Contributor

@hunnorth hunnorth commented Sep 5, 2023

Issue #:

Description of changes:
Frames per second of video stream was being processed on the main thread using setTimeout. However, when a meeting window gets moved into the background, the main thread timer used in setTimeout gets throttled and the fps drops dramatically. To overcome this issue, this PR will move the setTimeout call into a worker thread that does not get throttled.

Testing:

Can these tested using a demo application? Please provide reproducible step-by-step instructions.
Yes, start a meeting with at least one other attendee. Enable a video filtered and then hide the window (switch tabs). The other attendee should then observe no fps degradation in filter-enabled attendee.

Checklist:

  1. Have you successfully run npm run build:release locally?
    yes

  2. Do you add, modify, or delete public API definitions? If yes, has that been reviewed and approved?
    no

  3. Do you change the wire protocol, e.g. the request method? If yes, has that been reviewed and approved?
    no

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hunnorth hunnorth requested a review from a team as a code owner September 5, 2023 21:44
@hunnorth hunnorth closed this Sep 5, 2023
@hunnorth hunnorth deleted the video-ml/release branch September 5, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant