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
Currently browsers do not run requestAnimationFrame when browser are minimized/not visible, this is intentional to preserve device battery and prevent abuse.
However it is advantageous to some games to still run some logic (especially multiplayer) during this offscreen state.
Proposal
Investigate a possible mode with requestIdleCallback where game logic can still run while offscreen. It might be possible to modify the excalibur Clock to optionally switch to this other method, it won't be called at the screen refresh rate, but it might be sufficient for offscreen game code.
We should build a proof of concept to see if this is viable.
The text was updated successfully, but these errors were encountered:
Context
Currently browsers do not run requestAnimationFrame when browser are minimized/not visible, this is intentional to preserve device battery and prevent abuse.
However it is advantageous to some games to still run some logic (especially multiplayer) during this offscreen state.
Proposal
Investigate a possible mode with requestIdleCallback where game logic can still run while offscreen. It might be possible to modify the excalibur
Clock
to optionally switch to this other method, it won't be called at the screen refresh rate, but it might be sufficient for offscreen game code.We should build a proof of concept to see if this is viable.
The text was updated successfully, but these errors were encountered: