fix: default FPS limiter to disabled for pre-0.9.1 containers#1390
fix: default FPS limiter to disabled for pre-0.9.1 containers#1390xXJSONDeruloXx wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughThe PR changes the default FPS limiter behavior in ChangesFPS Limiter Default Initialization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Isn't the fix here that the toggle should show as enabled rather than changing the default? |
|
@xXJSONDeruloXx please see comment above. |
|
No, we should let users opt in, and if true and they toggle on fg they're locked into fps cap when ui disagrees with no way to affect |
Description
The built-in FPS limiter introduced in 0.9.1 defaults to enabled at 60fps. For every container created before 0.9.1 (which is essentially all of them), the limiter silently activates on first launch because there is no saved
fpsLimiterEnabledextra yet. TheparseBooleanExtracall falls through to the hardcodedtruedefault.This causes users to be capped at 60fps regardless of disabling the sidebar toggle, removing DXVK_FRAME_RATE from environment, or setting in-game fps to unlimited. The only workaround is manually toggling the limiter on then off in the quick menu so the
falsevalue gets persisted, or reverting to 0.9.0.The fix is a one-character change: default
initialFpsLimiterEnabledtofalseinstead oftrue. Existing containers where the user already toggled the limiter on are unaffected since their saved extra takes precedence. New containers and pre-0.9.1 containers will now start uncapped, and users can opt in to the limiter from the quick menu.Discord reports
https://discord.com/channels/1378308569287622737/1501131331575218307
https://discord.com/channels/1378308569287622737/1501640621704609812
https://discord.com/channels/1378308569287622737/1500055122766463026
Recording
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by cubic
Default the built-in FPS limiter to off for containers created before 0.9.1 to prevent a silent 60 FPS cap on first launch.
fpsLimiterEnabledto false when the extra is missing.Written for commit 0178b80. Summary will update on new commits.
Summary by CodeRabbit