Repository navigation
Port KLBF Lab's shader preparation, presets and memory saver - #73
Merged
Merged
Conversation
- Before Play, translate the game's shaders once per shader translator (`victory shaders`, keyed on `victory shader-fingerprint`) and make the pipelines earlier runs recorded (`victory warm`), as KLBF Lab's play.ps1 does. - Pass KLBF_* switches from Launch options and launch scripts; never set or pass KLBF_LAUNCHER. Name KLBF Lab's own-launcher refusal in the log. - Read a project's play.ps1 along its default path only: no more both sides of if/else, and no variable values such as `VICTORY_GAME_DIR = $Game`. - Graphics presets set a whole setup (profile, scale, output, memory saver), with a recommendation for the PC, a "Fit screen (16:9)" output and a memory saver from VIctory-LITE (GPL-3.0). Fix and verify turns it on after an out-of-memory crash. - Log a frame-rate report after each session: average, median, 5 % and 1 % lows and time in each band, leaving out the first two minutes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Play checked the game program only after the warm-up and the shader preparation, so a damaged install spent minutes on shaders before it said what was wrong. The check now runs right after the quick fixes. "Fit screen" read the display with GetSystemMetrics, which gives a scaled size in a process that is not DPI aware (--fix has no window). It now reads the primary display's mode, which is in real pixels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ideas from KLBF Lab, rebuilt in VILauncher's own form.
What changes
Shaders prepared before Play. On builds that offer the commands, Play first runs
victory shaders <shaders.rpf>once per shader translator (keyed onvictory shader-fingerprint, else the program's size and time). It then runsvictory warmwhen earlier runs recorded new pipelines. A failed step is logged and Play goes on; Stop stops it.KLBF_ switches.
KLBF_*lines in Launch options and launch scripts now reach the game, are translated as paths through the macOS/Linux runner, and are listed in problem reports.KLBF_LAUNCHERis never set or passed on: KLBF Lab v26.11.9 refuses to start from other launchers by its author's choice, and VILauncher respects that. The log now names that refusal and the launcher to use.play.ps1 defaults fixed. A project's
scripts/play.ps1is read along its default path only:if/elseif/elseare followed with every[switch]at its default. Before, both sides ofif ($Safe) {…} else {…}were applied, andVICTORY_GAME_DIR = $Gamewas passed on as the text$Game, replacing the game folder.Graphics presets as whole setups. Fast, Balanced and Best quality now each set the profile, scale, output and memory saver:
VICTORY_andKLBF_names. LITE'sPOOL_BLOCK_MB=4is left out, because KLBF found it crashing an RX 9070 XT. Fix and verify turns the saver on after an out-of-memory crash.Session frame-rate report in the log after each Play: average, median, 5% and 1% lows, and the share of time in each band (60+, 30-60, 20-30, 10-20, 5-10, under 5). The first two minutes are left out.
Not ported
KLBF_*switches, and VILauncher can't start KLBF builds.VICTORY_FRAME_INTERVAL_MS: it's experimental and changes the game's own timing.Testing
pnpm ci:checkpasses (typecheck, translations, UI tests, vite build, cargo fmt, clippy, cargo test). New tests cover the play.ps1 reader,KLBF_switch names, the pipeline warm decision, the 16:9 screen size, the memory saver lines, the session report, the presets and the recommendation.🤖 Generated with Claude Code