amazon-chime-sdk-component-library-react icon indicating copy to clipboard operation
amazon-chime-sdk-component-library-react copied to clipboard

Background Blur huge frame rate drop when tab is out of focus

Open mycroft-cesar opened this issue 2 years ago • 2 comments

What happened and what did you expect to happen?

I am implementing the background blur feature and I noticed the attendee video is only fluid (the remote tile) if the attendee is currently on the meeting tab. If the attendee changes the tab, or minimizes the browser the video frame rate drops for a value <= 5.

I did follow the example application from the docs.

Have you reviewed our existing documentation?

Reproduction steps

  • Enter on a meeting with two attendees
  • enable the background blur for one of them
  • change the browser tab or minimizes the browser for the attendee with the background blur enabled
  • compare both states while watching with the second attendee (the one without the background blur)

Amazon Chime SDK React Components Library version

3.5.0

What browsers are you seeing the problem on?

Chrome

Browser version

111.0.5563.110

Device Information

macOS Ventura 13.0

Meeting and Attendee ID Information.

No response

Browser console logs

with the meeting on focus: image

out of focus: image

Add any other context about the problem here.

these are the options used on the provider: { blurStrength: 5, filterCPUUtilization: 30, reportingPeriodMillis: 1000 }

mycroft-cesar avatar Apr 07 '23 12:04 mycroft-cesar

Thank you for raising this issue! It is a known issue that Chrome and other browsers throttle background tabs to optimize performance. There may be browser flags that you can try to disable background tab throttling in the client, but we’re currently unaware of any options to systematically resolve this issue from the developer side.

ryanajae avatar Apr 14 '23 18:04 ryanajae

I didn't find a single thing about such flags, do you have some links about this matter?

mycroft-cesar avatar May 16 '23 20:05 mycroft-cesar

https://winaero.com/disable-tab-throttling-google-chrome/

Perhaps you can try this.

I'll close this issue for now, please create a new issue if this persists.

michhyun1 avatar Nov 04 '24 22:11 michhyun1