Skip to content

Fix target fps - #59

Merged
jspanchu merged 2 commits into
masterfrom
fix-target-fps
Sep 18, 2026
Merged

jspanchu merged 2 commits into
masterfrom
fix-target-fps

Conversation

@jspanchu

@jspanchu jspanchu commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Instead of sleeping for entire target_period_s = 1.0/target_fps after the render, sleep only for target_period_s - time_to_render seconds. This fixes the issue where you had to set target_fps=2N to see a true FPS of N.

@jspanchu
jspanchu requested a review from jourdain September 18, 2026 17:38
@jspanchu
jspanchu merged commit d2aee30 into master Sep 18, 2026
7 checks passed
@jspanchu
jspanchu deleted the fix-target-fps branch September 18, 2026 17:44
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