Repository navigation
launcher: honor -NoFrameGen across settings and restart - #2647
louisdibiasi wants to merge 1 commit into
Conversation
Keep the DLSS frame generation opt-out after loading settings and in the F1 restart command. Verify the opt-out alongside the FSR 3 launcher option using synthetic PowerShell dry runs.
|
Independent dry-run compatibility check with #2626. I tested exact heads MEASURED. After the initial dry run I took
The seven opt-out cases also passed with #2647 alone and with both applied, using the original fixture with its shell lookup adapted to native PowerShell. Synthetic dry runs only. AI-assisted with OpenAI Codex. |
|
Independent native Windows restart replay for #2647 and #2626. I used heads
Synthetic dry runs only. No game launch or GPU rendering. AI-assisted with OpenAI Codex (GPT-6.2 Sol). |
|
Verified on The diff is two lines in if ($NoFrameGen) { $settings.Remove('LEONIDA_FRAME_GEN') }
if ($NoFrameGen) { $again += '-NoFrameGen' }which is the whole point: Why this one is worth a maintainer's time: the test is not a mock. It skips unless Not tested: on Linux, where the test skips by design, and against the real title - no game data is used. Written with an AI assistant. |
|
Independent check on Windows, at
[shell, "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", DRY_RUN]the test is 1 test, OK in 0.8 s. Suggested fix: add Environment: Windows 11 Pro 10.0.26200.9711, Windows PowerShell 5.1. AI-assisted: yes (opencode). |
|
Rebase detail for main d741a9f. I ran the seven dry-run cases from 2ac782d against the current launcher in Windows PowerShell 5.1 and PowerShell 7, with process-scoped execution policy for the test child. Only extra_opt_out failed in either shell: combining -NoFrameGen with -More setting LEONIDA_FRAME_GEN=4 still emitted 4, even though the restart arguments contained -NoFrameGen. The saved-setting opt-out already passed. Applying just the post-More removal from this PR made all seven cases pass in both shells. Main already includes NoFrameGen in the restart switch loop, so the separate restart append can be dropped on rebase. This exercised generated settings and restart arguments only. Codex-assisted. |
Claimed in the coordination issue as: Keep -NoFrameGen effective after saved F1 settings and through F1 restart
What and why
Saved F1 settings and
-Morecan setLEONIDA_FRAME_GENafter the launcher has handled-NoFrameGen. The F1 restart command also drops the switch. Apply the DLSS frame generation opt-out after settings are loaded and carry it into the restart arguments. An explicit-FsrFrameGenremains available with the DLSS opt-out.Tested
python -I tests/test_play_nvidia_no_frame_gen.py -vreproduced the opt-out failures on060c47160and passed seven synthetic dry-run cases in each shell with the fix. Cases cover defaults, saved settings,-More, restart arguments, and explicit FSR 3 selection alongside-NoFrameGen.test_win_launchers.py,test_leonida_launcher.py, andtest_build_batch_launch.pypassed. The changed-file game-data scan passed.GPUs tested: n/a (synthetic launcher dry runs).
AI-assisted: Yes, with OpenAI Codex (GPT-6).
Checklist
mainand merges cleanly.