Skip to content

Conversation

@wouterlucas
Copy link
Contributor

This PR adds the following:

  • Per animation controllable target FPS, if not provided default below will be used
  • Global target FPS cap (default)
  • Runtime getter/setter to control default FPS cap
  • Two examples to play with the new setting
Screen.Recording.2025-06-30.at.19.19.26.mov

@wouterlucas
Copy link
Contributor Author

dropping in favor of #607

wouterlucas added a commit that referenced this pull request Jun 30, 2025
Throttle RAF by targetFPS for smoother animations.

This effectively caps all rendering, instead of the old PR
#605 that capped only
animations. The animations route led to glitchy animations as the
progress and left over frametime went out of sync.

By capping the entire upload loop everything neatly aligns and the
system will not cross the desired targetFPS.

Demo:


https://github.com/user-attachments/assets/bfb7660e-ce67-4848-8682-e0046c924ab3
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

Successfully merging this pull request may close these issues.

2 participants