Launcher: a No limit frame rate (VICTORY_FRAME_INTERVAL_MS=0)

The Frame rate row offered the program's own 30, 40 and 60. No limit sets VICTORY_FRAME_INTERVAL_MS=0: the layer's frame clock does not wait, and with a title profile's frame_rate group the program is given rate 0, its own no-limit setting (sim rate 1000), as the loader already supported. Experimental, like 40 and 60, and only useful where frames come faster than 60. Not compiled yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
readmet3xt-lab
2026-12-02 11:02:11 +05:30
parent 1a473b43dd
commit 50887005c5
2 changed files with 8 additions and 5 deletions

View File

@ -88,8 +88,8 @@ others follow the button's rules and testers' reports (see [docs/status.md](docs
| 12 GB | Series S profile (too little RAM for Series X) | **Series X profile at 1440p, DLSS Balanced** | **measured here** (a 12 GB RTX card, 32 GB RAM) |
| 16 GB and more | Series S profile | Series X profile at 1440p, DLSS Balanced; 4K on a 4K monitor (16 GB: Performance); 20 GB and more: DLSS Quality | rules |
- **Frame rate:** 30 fps, the program's own. The 40 and 60 fps settings are experimental: they ask the program to
run faster, which the layer reaches only in light scenes.
- **Frame rate:** 30 fps, the program's own. The 40 fps, 60 fps and No limit settings are experimental: they ask the
program to run faster, which the layer reaches only in light scenes.
- **Frame generation** is left off by the button. Frame generation is best from a steady 30 fps; the choice is yours.
- **VRAM limit:** "Auto" uses what Windows reports for your card. Lower it if you see "out of memory" (see
*Troubleshooting*).

View File

@ -585,9 +585,9 @@ namespace Foxhound
"Experimental, off by default. Software: the program's own ray-traced light (rooms lit by what bounces in, light probes, shadows of its lights) runs as translated programs on any card, with no ray-tracing hardware used. It can cost a lot of frame rate (tens of milliseconds a frame on some cards). While it is on, the \"Dark areas\" setting has no effect (the program's own light takes its place). It also places up to 4 GB more on the card for the program's memory as its shaders read it; on a card with less room that memory stays in the PC's memory, which is slower. Changing this setting makes the shaders go through again once, so the next start takes longer. Known: moving objects can show wrong shadows or light for a moment." +
(HwRtShown ? " Hardware: the program's ray-tracing structures are built by the card's own ray-tracing hardware instead (a card with DXR tier 1.1 and shader model 6.5; on another card it stays off and the log says why). It also works on 6 and 8 GB cards: the layer sizes the card memory it takes for this to each card itself, and the launcher sets no limit for it. Software and Hardware are one setting, so only one of them runs." : "")),
new Opt("fps", "Frame rate", false, "title",
new string[] { "title", "40", "60" },
new string[] { "30 fps (the program's own)", "40 fps (experimental)", "60 fps (up to 60; uneven in busy scenes)" },
"The rate the program is told to run at (its own setting is 30; its frame time, its limiter and its simulation step follow, so the game is not faster, only smoother). The layer needs about 26 ms a frame in gameplay on the tested PC, so 40 is near what it reaches and 60 is not reached yet; frames then come as fast as they are made. Frame Generation doubles what is shown. Experimental: with 60 fps and DLSS two runs stopped where the world first loads (\"Failed to allocate upload buffer\", issue #9); at 30 fps one PC did too, with its memory for programs (RAM and page file) nearly used up."),
new string[] { "title", "40", "60", "none" },
new string[] { "30 fps (the program's own)", "40 fps (experimental)", "60 fps (up to 60; uneven in busy scenes)", "No limit (experimental: as fast as frames are made)" },
"The rate the program is told to run at (its own setting is 30; its frame time, its limiter and its simulation step follow, so the game is not faster, only smoother). The layer needs about 26 ms a frame in gameplay on the tested PC, so 40 is near what it reaches and 60 is not reached yet; frames then come as fast as they are made. No limit: the layer's clock does not wait at all and the program is given its own no-limit setting; useful only where frames come faster than 60, and pacing follows the scene. Frame Generation doubles what is shown. Experimental: with 60 fps and DLSS two runs stopped where the world first loads (\"Failed to allocate upload buffer\", issue #9); at 30 fps one PC did too, with its memory for programs (RAM and page file) nearly used up."),
new Opt("profile", "Profile", false, "1",
new string[] { "1", "2", "3", "4" },
new string[] { "Profile 1 (the saves so far)", "Profile 2", "Profile 3", "Profile 4" },
@ -828,6 +828,9 @@ namespace Foxhound
string fps = ProfileLoaded ? s.Get("fps", "title") : "title";
if (fps == "40") env["VICTORY_FRAME_INTERVAL_MS"] = "25";
else if (fps == "60") env["VICTORY_FRAME_INTERVAL_MS"] = "16.667";
// No limit: our clock does not wait, and with the profile's frame_rate group the program gets rate 0, its own
// "no limit" (victory_loader::frame_rate::title_rate).
else if (fps == "none") env["VICTORY_FRAME_INTERVAL_MS"] = "0";
// Profiles 2-4: saves and settings in a data folder of their own (issue #11).
string profile = s.Get("profile", "1");
if (profile == "2" || profile == "3" || profile == "4")