Repository navigation
gamescope: drop the -r 1200 vblank grid - #2299
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remove fixed refresh-rate argument app/src/main/java/app/gamenative/display/GamescopeState.kt, app/src/main/java/com/winlator/xenvironment/components/BionicProgramLauncherComponent.java |
Removes SESSION_GRID_HZ and gridArg(). The Gamescope launch command no longer appends the grid argument; scaler arguments and mode geometry remain. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Possibly related PRs
- utkarshdalal/GameNative#2298: Removes the same Gamescope symbols and launch-command argument.
- utkarshdalal/GameNative#2283: Changes the refresh-rate and mode behavior advertised to the gndrm daemon.
- utkarshdalal/GameNative#2297: Replaces the Gamescope binary with a build that uses a vblank time grid for its FPS limiter.
Suggested reviewers: joshuatam
Merge Risk: 
Minimal · up to d2273
-
Gamescope can use the panel refresh advertised by the daemon, so the change is ready to merge after normal checks.
Pre-merge checks: 
4
-
Full details: Description check
-
Explanation
The description clearly explains the change, rationale, measured performance impact, scope, and device testing. It identifies a performance/stability improvement. The required Recording section and several standard checklist items are not included, but the description is otherwise sufficiently complete and on topic.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Description
Removes the fixed
-r 1200vblank grid from the gamescope launch command. gamescope then takes its tick rate from the mode the daemon advertises, which is the panel's active refresh (the daemon learns it fromnativeSetPanelRefreshHzand measures the real latch grid itself).-r 1200existed so the old wakeup-counting FPS limiter could hit arbitrary caps on a fine grid. A52 (gamescope #22, merged) moved the limiter to a time grid, so the fine grid is no longer needed, and it cost about 1500 steamcompmgr wakeups a second for the whole session.Measured (Retroid Pocket 6, 120 Hz, Dave the Diver, cap 60, same scene)
-r 1200(shipped A52)-r(A52, mode 120 Hz)Type of change
Checklist
selecting mode 1280x720@120Hz,vblank: Using timerfd, caps 60 and 30 exact with #37)Supersedes #2298, which bundled this with an unproven daemon change.
Summary by cubic
Removes the fixed
-r 1200vblank grid from the gamescope launch command; gamescope now ticks at the refresh rate the daemon advertises (the panel's active refresh) instead of a fixed 1200 Hz grid.The grid was only needed for the old wakeup-counting FPS limiter; A52 moved the limiter to a time grid, so it no longer serves any purpose and cost about 1500 steamcompmgr wakeups per second. Measured on a Retroid Pocket 6 at 120 Hz, session wakeups drop from ~1720/s to ~620-850/s and gamescope CPU from 8.1% to 6-7%, with no change in frame rate.
Written for commit 09e997d. Summary will update on new commits.
Summary by CodeRabbit