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 FPS Limiter #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add FPS Limiter #47

wants to merge 1 commit into from

Conversation

qixils
Copy link
Contributor

@qixils qixils commented Aug 8, 2023

Replaces the VSync options with a general-purpose FPS limiter to reduce the game's CPU/GPU utilization and to make speedrunning tricks consistent. Users can set their FPS to be limited by full vsync, adaptive vsync, unlimited, 60fps, 120fps, etc.

Tried a couple ideas for implementing this but found this frame skipping method to feature the most stable FPS limit (little to no deviations up or down). In my testing, the frame skipping appears to have a negligible performance impact compared to more love.timer.sleep-based solutions, which I found to be either very broken (running too fast/slow) or unstable (high variation in frame timing).

@qixils qixils changed the title feat: fps limit Add FPS Limiter Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant