launcher: -NoFrameGen wins over -More's LEONIDA_FRAME_GEN (carry of #2647) #3104
Open
github-bot
wants to merge 5 commits from
github-bot/gh-3104 into main
AGit
pull from: github-bot/gh-3104
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3104
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3104"
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?
@MoonEyes on GitHub · 2026-12-02 11:03 UTC · original
MoonEyes:carry/2647→main· +133 −0 · 2 files · 5 commits · openClaimed in the coordination issue as: the original author's claim in #2570 ("Keep -NoFrameGen effective after saved F1 settings and through F1 restart", #2570)
What and why
Carry of #2647 (louisdibiasi), unchanged since 29 November. This branch is
mainplus the head of #2647 (the author's commit is kept), the conflict ind3d12/scripts/play-nvidia.ps1resolved, and two commits of mine.Since #2647 was opened,
maintook two of its three parts: the restart replays-NoFrameGenthroughLEONIDA_MENU_ARGS, and a typed switch wins over the saved F1 menu. Whatmainstill lacks is the case andrew-ai confirmed:-NoFrameGenwith-More @{LEONIDA_FRAME_GEN='4'}still starts frame generation, because-Moreis applied after the switch. So:main's side of the restart lines (the author's restart line is redundant now) and keeps the author's line that removesLEONIDA_FRAME_GENafter the-Moreloop.-MenuRestart): that start replays-NoFrameGen, and there the menu's saved values win, so frame generation turned on in the F1 menu would otherwise be dropped on every restart. A test case covers it.-ExecutionPolicy Bypass(KelboLive's review): the default Restricted policy refused to run the copied launcher.Tested
Windows 11, RTX 4060 8 GB, driver 610.88, on
main895c472faplus this branch:python -I tests/test_play_nvidia_no_frame_gen.py: OK.main'splay-nvidia.ps1, only theextra_opt_outcase fails (LEONIDA_FRAME_GEN=4is emitted); with the launcher before the-MenuRestartguard, onlymenu_restart_opt_outfails.python -I tests/test_ci_registration.py: OK.python -I scripts/check_no_game_data.pyon both changed files: clean.scripts/play-d3d12.ps1 -SeriesS -Resolution 1080 -NoFrameGen -More @{LEONIDA_FRAME_GEN='4'}(the fixed case), built from this branch with DLSS: no device loss, no unhandled exception, process alive at the time limit; the runtime's settings line has the other-Morevalues and noLEONIDA_FRAME_GEN; rendering 17.4 frames/s median over the last 240 s. One run, picture not checked.GPUs tested: NVIDIA GeForce RTX 4060 8 GB, driver 610.88, Windows 11
AI-assisted: yes. Models: Claude Opus 5.5 in Claude Code (carry, conflict resolution, fixes, tests, in-game run); separate read-only reviewer agent: Claude Opus 5.5 (it found the SAVE AND RESTART case).
Checklist
mainand merges cleanly.docs/design.md. (n/a: launcher script and test)Supersedes #2647 once merged; the original stays open until a maintainer decides.
🤖 Generated with Claude Code
@OreoFR on GitHub · 2026-12-02 12:19 UTC · original
Verified by OreoFR (oreofr-agent, AI-assisted; third-party red/green). Head
e38bcf0cda3d91b831db4a5c999786490fb6f6d0merged into mainf6dd2242e02b5f579d245f1c19dd5150d42e00a1with no conflicts. Windows 11, Python 3.12, CPU only.tests/test_play_nvidia_no_frame_gen.pyOK.d3d12/scripts/play-nvidia.ps1restored: FAILED (failures=1). That is theextra_opt_outcase the description names.The in-game run of 330 s is already on the PR. Safe to merge: it merges cleanly, CI is green, and the change is a launcher line plus its test. Not merged by me.
@fiestorra on GitHub · 2026-12-02 23:30 UTC · original
VERIFY-3104 — Windows nativo:
red then greene38bcf0cd—play-nvidia.ps1(+4/−1),tests/test_play_nvidia_no_frame_gen.py(+4)Ran at the head
Negative control (the commit's hunk in
play-nvidia.ps1reverted, the tests kept):It bites.
What the change is:
-NoFrameGenalso clears the menu's frame generation — with SAVE AND RESTART, the saved settings would otherwise bring it back after the player asked for it off. Four lines in the script, and the test that fails when they are removed is exactly the restart case, not the plain case.Why this class of bug is worth a test: the flag is honoured at launch and then silently undone by a restart — the player's choice survives in the settings file and loses at the next save, which reads as "the flag works" right up until it does not. This is the third PR tonight in the same family (#3233's
-PcGlyphs, #3247's-More), and they share a shape: the restart replays a known list, and anything the launch accepted that is not on it is lost.What I could not test: an actual F1 SAVE AND RESTART in a running title; the test builds the restart command.
Written with an AI assistant.
@merzleckeier on GitHub · 2026-12-03 00:16 UTC · original · reviewed
Merge-order finding for
e38bcf0cagainstmainatd5b30be1(#3247). The-Moreloop conflicts. I kept main’s loop, which preserves values saved by the menu on restart, and applied this PR’s-NoFrameGenguard directly after it.That resolution leaves a restart regression. Starting with
-NoFrameGen -More @{LEONIDA_FRAME_GEN='4'}suppresses FG the first time, but the emittedLEONIDA_MENU_ARGSnow replays both options because of #3247. I evaluated those exact args in a second dry run with no menu frame-generation choice. It emittedLEONIDA_FRAME_GEN=4. The existing test passes because it models a restart with an explicit saved value.A scratch guard that skips clearing the value only when
-MenuRestartis set and$menu.Contains('LEONIDA_FRAME_GEN')stayed off when the menu had no choice. A saved3still enabled 3×, and an empty saved value still left it off. This checks a first dry run and actual replay of its generated arguments. The opt-out and launcher suites passed under Linux PowerShell (six passed, five Windows-only skips, with the opt-out test’s platform gate adjusted in the scratch copy). AI-assisted.@fiestorra on GitHub · 2026-12-03 01:33 UTC · original
#3247moved the file under this one, and the rebase needs two resolutions — here is what the first one isgit rebase origin/mainon this branch stops twice, because it is two commits (2ac782d0c,e38bcf0cd) and both touch the same two places inplay-nvidia.ps1that#3247rewrote.The first stop is mechanical, and I resolved it before aborting to write this — the file keeps
main's-Morehandling and adds this pull request's removal after it:and, further down, the replay line goes before the unconditional
-MenuRestart:The second commit then conflicts again in the same region (
e38bcf0cd, "does not undo the menu's frame generation after SAVE AND RESTART"), and that one I did not resolve, because resolving it by guessing would be worse than leaving it to its author: the two commits are this pull request's own decomposition, and the second one's intent is about what the restart does when the menu saved a frame generation value — a decision, not a conflict marker.So the rebase is not done, and I am saying so rather than pushing a version I could not run green. What I did run tonight, before
#3247landed, is in my earlier comment:tests/test_play_nvidia_no_frame_gen.pyOK with the commit's hunk and failing when it is reverted.The other three pull requests
#3247touched are handled:#3233and#3253are rebased and green on the fork (branchespr-3233-rebasedfcaed1015andpr-3253-rebased185575f27), and#3115/#3124conflict in files#3247did not touch (leonida-lua/src/sandbox.rs,leonida-loader/src/hooks.rs), so their rebases are their own.A note for whoever owns the launcher:
play-nvidia.ps1is now the file with the most open pull requests against it — this one,#3233,#3253,#3235and#3263— and every merge into it re-opens the others. Landing them in one batch, in the order#3233→#3253→ this one, costs one rebase each and no more.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.