Skip to content

Add FPS Limiter#47

Open
qixils wants to merge 1 commit intoStabyourself:masterfrom
qixils:fps-limit
Open

Add FPS Limiter#47
qixils wants to merge 1 commit intoStabyourself:masterfrom
qixils:fps-limit

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

Development

Successfully merging this pull request may close these issues.

1 participant