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

Add a frame rate limit to animation objects #65

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

KaliedaRik
Copy link
Owner

SC runs as fast as the browser's Request Animation Frame functionality (plus webpage display requirements) allows. However, where 60fps used to be the general animation frame rate limit, we now live in a world where browsers and display equipment conspire to run at up to 120fps. This can lead to SC animations doubling in speed, which may not be the desired outcome.

This PR introduces the concept of maxFrameRate to SC animation objects, and updates demo canvas-050 to test that the new functionality works.

@KaliedaRik KaliedaRik merged commit fa6eb10 into v8-dev Jan 3, 2024
@KaliedaRik KaliedaRik deleted the add-animation-choke-test branch January 3, 2024 09:21
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.

None yet

1 participant