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

Project acts strange when minimized/tabbed out #941

Open
TheShovel opened this issue Jan 29, 2025 · 1 comment
Open

Project acts strange when minimized/tabbed out #941

TheShovel opened this issue Jan 29, 2025 · 1 comment

Comments

@TheShovel
Copy link

Animation frame fired runs at a lower rate when the page is not "active". This causes issues with most multiplayer projects, loading stuff externally and some other niche cases. If not replaced, then an option to use another frame loop method would be nice.

Sorry if this is not explained well enough, im not very familiar with this part of the VM :/

@GarboMuffin
Copy link
Member

It uses setInterval unless you set the FPS to "0" then it uses requestAnimationFrame. I don't think there's much we can do to stop the browser from throttling us in the background

For Electron apps we can probably turn off background throttling if we don't already

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

No branches or pull requests

2 participants