News for hackers. Stuff that matters.
Re:Show HN: Canvas engines performance comparison – PixiJS, ... by xmonkee on Tuesday May 05, 2020 @06:00PM (#23085589)
Why is it that if I have a video playing in another tab, the FPS goes from 60 to 10?
Re:Show HN: Canvas engines performance comparison – PixiJS, ... by tobyhinloopen on Tuesday May 05, 2020 @06:23PM (#23085830)
Timers and JS get throttled for inactive tabs and windows.
Re:Show HN: Canvas engines performance comparison – PixiJS, ... by hoorayimhelping on Tuesday May 05, 2020 @07:13PM (#23086196)
requestAnimationFrame stops its timers when tabs become inactive. To fix this, reset timer values when the browser tab receives focus.

https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...

Re:Show HN: Canvas engines performance comparison – PixiJS, ... by nougatbyte on Tuesday May 05, 2020 @06:02PM (#23085606)
Its a browser feature to save performance