You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably because Chrome throttles timers/rendering when tab is not active.
Reproduction
Run many e.g. flip animations when the browser tab is not active and it eventually crashes.
Probably all animation functions should check for document.visibilityState === 'visible' before they are run, this will save CPU and memory when tabs are not active.
Logs
No response
System Info
Chrome 120
Severity
annoyance
The text was updated successfully, but these errors were encountered:
angryziber
changed the title
Running many animations on timer when the tab is in background causes a memoty leak
Running many animations on timer when the tab is in background causes a memory leak
Dec 8, 2023
Describe the bug
Probably because Chrome throttles timers/rendering when tab is not active.
Reproduction
Run many e.g. flip animations when the browser tab is not active and it eventually crashes.
Probably all animation functions should check for
document.visibilityState === 'visible'
before they are run, this will save CPU and memory when tabs are not active.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: