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

feat: render mode to pause rendering when window is blurred #517

Open
andretchen0 opened this issue Jan 21, 2024 · 0 comments
Open

feat: render mode to pause rendering when window is blurred #517

andretchen0 opened this issue Jan 21, 2024 · 0 comments
Labels
feature p2-to-be-discussed Enhancement under consideration (priority)

Comments

@andretchen0
Copy link
Contributor

As a developer using Tres, I would like a to have a render mode that pauses rendering when:

  • the window/app containing the Tres Scene is blurred/backgrounded
  • OR the tab/page containing the Tres Scene is blurred/backgrounded

And resumes rendering when:

  • the window/app containing the Tres Scene is focused/foregrounded
  • AND the tab/page containing the Tres Scene is focused/foregrounded

Context

@andretchen0 @alvarosabu In my tests with babylonjs (other engine but should be similar) this worked well, when the tab was in the background yes. But using multiple windows where the window running the engine is visible but not focused left it running at 60 FPS. Given many 3d websites/applications are very resource intensive I'd still consider adding the option to pause rendering when the tab/window is not focused.

Originally posted by @thomasaull in #497 (comment)

@alvarosabu alvarosabu added p2-to-be-discussed Enhancement under consideration (priority) feature labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature p2-to-be-discussed Enhancement under consideration (priority)
Projects
None yet
Development

No branches or pull requests

2 participants