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 maximum FPS option to LGraphCanvas #356

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Add maximum FPS option to LGraphCanvas #356

merged 1 commit into from
Nov 28, 2024

Conversation

webfiltered
Copy link
Contributor

FPS cap

Adds an property to LGraphCanvas to specify maximum render frames per second.

Currently, the only limit to FPS is the refresh rate of the screen, reported by the browser. Users with very high refresh rates experience unnecessarily high GPU usage.

Usage:

// Limit FPS to 30
canvas.maximumFps = 30

// Existing behaviour (Default):
canvas.maximumFps = 0

@huchenlei huchenlei merged commit 24db9e2 into master Nov 28, 2024
4 checks passed
@huchenlei huchenlei deleted the max-fps branch November 28, 2024 14:46
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