F1: a 15 FPS cap that holds gameplay only, not the opening, menus or loading screens #4749
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4749"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by guhttps on 2026-12-01T04:51:05Z.
What it changes
Adds
15 (GAMEPLAY)to F1'sFRAME RATE CAP.A plain 15 FPS cap (
VICTORY_FRAME_INTERVAL_US=66667with the title patched to 15) also holds the opening, menus and loading screens to 15 FPS — half the title's own 30 — making startup and loading noticeably slower. This option caps only gameplay frames (frames of the world), keeping the title's own 30 FPS pacing outside the world.apps/victory/src/play.rs: whenfps == 15, the launcher setsVICTORY_FRAME_INTERVAL_US=66667,VICTORY_FRAME_INTERVAL_DRAWS=500,VICTORY_FRAME_INTERVAL_IDLE_US=1000, andVICTORY_TITLE_FPS=off, so the title keeps its own 30 FPS rate and limiter while our clock applies 15 only to world frames.NONE,120,60, and30are unchanged.crates/victory-gpu/src/frame.rs: addsVICTORY_FRAME_INTERVAL_IDLE_US(used only alongsideVICTORY_FRAME_INTERVAL_DRAWS; unset keeps existing behaviour) to set our clock's interval below the draw threshold, from startup and afterFEW_IN_A_ROW(30) consecutive low-draw frames. Frames with 500+ draws (the same threshold used byworld_frame) tick at the configured 66.7 ms cap.crates/victory-gpu/src/host/menu.rs: adds("15", "15 (GAMEPLAY)")toVICTORY_MENU_FPSand updates its F1 help text.README.mdanddocs/README-nvidia.md: documents15 (GAMEPLAY)andVICTORY_FRAME_INTERVAL_IDLE_US.Notes:
maincurrently has pre-existing clippy errors infont.rs,menu.rs, andpanel.rsfrom #4634 (unrelated to this PR; see #4679 / #4707).How it was tested
VICTORY_MENU_S_RES=626,1080to1440), DLSS Balanced, DLSS Frame Generation 2x, Ray Tracing off.cargo build --release --locked -p victorysucceeded;cargo xtask policy --stagedpassed (5 files ok). In-game pacing confirmation with the updated build is pending user verification; earlier run log confirmed all four switches (VICTORY_FRAME_INTERVAL_US=66667,VICTORY_FRAME_INTERVAL_DRAWS=500,VICTORY_FRAME_INTERVAL_IDLE_US=1000,VICTORY_TITLE_FPS=off) are passed at launch.cargo testpassed for the crates it touches: no (not run; two unit tests were added:an_idle_interval_holds_only_the_world_to_the_capinvictory-gpuandfifteen_caps_only_the_worldinvictory).Checked for overlap
frame.rssuch as #482, #831, #1577, #3072, #3590, #3617, #3854, #4377, #4480 are unrelated to a 15 FPS gameplay-only cap).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T09:27:09Z.
The PowerShell launcher still reads the saved
15 (GAMEPLAY)choice as a global66.667 msinterval at the exact PR headc1bc68b6. I added the same four settings used byvictory playto the script. Review commitOn Windows PowerShell 5.1, the exact settings block now produces
66667µs for gameplay, the500-draw threshold,1000µs for the low-draw interval, andVICTORY_TITLE_FPS=off. The 15 FPS result matches with and without-FixedStep. The 30, 60, 120 and uncapped settings matched the original block in both modes. Script parsing and the staged policy passed.The one-file commit
9ebf69567782ab5fcbee2b8bf7413ab267cd2b2eis ready to cherry-pick into this PR. Actual gameplay pacing is still for the game test. Please retain the Git author on cherry-pick or rebase, or addCo-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.