linux/play.sh: laptop preset, frame generation under vkd3d-proton, pipeline warm-up, shader scan that finishes #430

Closed
github-bot wants to merge 663 commits from github-bot/gh-430 into main AGit
Owner

@⁠sander110419 on GitHub · 2026-11-28 23:17 UTC · original
sander110419:linux-play-laptop-fg → main · +60077 −5429 · 206 files · 663 commits · closed without merging

Linux/Wine only: this changes linux/play.sh and nothing else. I can't run the Windows smoke runs, so everything below comes from real runs on one Linux machine.

Machine: RTX 5070 Laptop 8 GB (driver 595.104, PRIME offload with the display on the AMD iGPU), Ryzen 9 9955HX (16 cores), 30 GB of RAM, Pop!_OS. GE-Proton11-14 with linux/wineserver's viewtree build, GE's vkd3d-proton (v3.1-83), main at fe7c6e5, diag build, Series S.

How the runs were made: every run was started by hand: Enter at the start screen, the opening cutscene skipped, then the same scene with the same inputs each time. The frame rates are in-game figures: the window title's fps read every 2 s, counted only while the title drew more than 1,000 draws a frame. Frame-generation figures come from the log's frame generation lines. (Corrected: this description first called the scene the opening cutscene.)

1. Shader pretranslation stopped rescanning on every launch

shaders --if-needed only records a finished scan when the walk had no I/O errors. With GAME at the root of a drive, the walk covers everything on it, other folders included, and a root-only lost+found counts as one walk error. So the scan never got recorded, and every launch rescanned for about 6 minutes.

play.sh now passes only the title's own files:

  • every regular file in GAME;
  • the readable folders that hold .rpf or .ttpf archives (data/ and pack/ here).

The next launch printed "Shader cache already pretranslated for these paths and settings".

2. Options ported from play.ps1, with what Linux needs on top

  • MACHINE=laptop is -Machine laptop (docs/laptop-16gb.md):

    • threads by physical core count, DSTORAGE_IO=direct, INPLACE=2, 64 KiB windows with tails, LEVELS_ON_DEMAND, the working-set ceiling;
    • 1920×1080 output at half render scale through the title's own upscaler.

    On cards with 8 GB or more it also keeps 1 GB of card copies, set as the 4070 preset does (CARD_BUFFERS_MB=1024, CARD_RESERVE_BUDGETS=1, CARD_BUFFERS_MIN_KB=64), instead of 256 MB:

    • With 256 MB, the log showed "waited for flights, per frame: 153 ms ... for a buffer copy's source ... not done on the card: no host copy holds all of it".
    • With 1 GB that wait dropped to 24 ms a frame.
    • In game, 180 s per run, median fps: 4.0 → 9.0, then 12–14 once the caches were warm.
  • FRAMEGEN=1 is -FrameGen. Under vkd3d-proton it needs two more things here:

    • VKD3D_CONFIG=single_queue: the AMD swap chain creates its own DIRECT queue at high priority and puts the real swap chain on it (FrameInterpolationSwapchainDX12.cpp, SDK 2.4.0). Without single_queue the window stayed fully black — fullscreen or windowed, panel on or off — even while it was only passing frames through.
      • Turning off VK_EXT_present_timing (another fork's fix for a white FG window) did not help here, and neither did turning off present_wait/id with FIFO forced.
      • Cost of single_queue: in the first pair of runs it was slower (13 → 9 fps in the same scene, frame generation off). Identical runs on this machine vary between 9 and 14 fps, so the size of that cost is not established. (Corrected: this line first said "about 30%".)
    • An upscaler that gives frame generation its inputs: with the laptop preset's VICTORY_UPSCALER=6, frame generation never runs (0 generated, enabled=false). Under MACHINE=laptop, FRAMEGEN=1 therefore selects FSR=performance, which renders the same 960×540.
    • Result in the same scene: 8–10 rendered fps and 16–20 presented (2.0×). The log says "first AMD generation callback succeeded".
  • RAYTRACING=1 is -RayTracing.

  • DLSS= / FSR= are -Dlss / -Fsr.

  • MORE="VICTORY_X=1 ..." is -More.

  • WARM=1 is -WarmPipelines (warm --used).

    • warm only knows pipelines that an earlier run recorded with VICTORY_PIPELINE_BOOK=1. Without it, it printed "0 pipelines known" here, so WARM=1 also sets VICTORY_PIPELINE_BOOK=1.
    • After one such run: "83560 pipelines known ... 2533 to make".
    • play.ps1's -WarmPipelines doesn't set the book either. I couldn't check that on Windows, so I've only flagged it here.

Left out on purpose

  • VICTORY_PLACED_FILL_REDIRECT=1 is #415.
  • From the open PRs, I tried #413, #414, #392, #395, #424 and #396 together, plus VICTORY_KEEP_AHEAD=1 (#388) and VICTORY_REAPER=1 (#247), in the same scene. None was faster than main on this machine (median 12–13 vs 14; KEEP_AHEAD 10, REAPER 9). Single runs vary by about ±20%, so these are one-machine observations, not verdicts on those PRs.

Visual checks

These were screenshots, not the full recordings AGENTS.md asks for. The picture with FRAMEGEN=1 looked like the picture without it. A rainbow-speckled texture on one character's arm appears both with and without these changes.

AI use: prepared with an AI assistant (Hermes Agent, model claude-opus-5-5). The measurements are from real runs on the machine above, and each number was checked against the run logs before posting.

**@⁠sander110419** on GitHub · 2026-11-28 23:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/430) `sander110419:linux-play-laptop-fg` → `main` · +60077 −5429 · 206 files · 663 commits · closed without merging Linux/Wine only: this changes `linux/play.sh` and nothing else. I can't run the Windows smoke runs, so everything below comes from real runs on one Linux machine. **Machine:** RTX 5070 Laptop 8 GB (driver 595.104, PRIME offload with the display on the AMD iGPU), Ryzen 9 9955HX (16 cores), 30 GB of RAM, Pop!_OS. GE-Proton11-14 with `linux/wineserver`'s viewtree build, GE's vkd3d-proton (v3.1-83), main at fe7c6e5, diag build, Series S. **How the runs were made:** every run was started by hand: Enter at the start screen, the opening cutscene skipped, then the same scene with the same inputs each time. The frame rates are in-game figures: the window title's fps read every 2 s, counted only while the title drew more than 1,000 draws a frame. Frame-generation figures come from the log's frame generation lines. (Corrected: this description first called the scene the opening cutscene.) ### 1. Shader pretranslation stopped rescanning on every launch `shaders --if-needed` only records a finished scan when the walk had no I/O errors. With `GAME` at the root of a drive, the walk covers everything on it, other folders included, and a root-only `lost+found` counts as one walk error. So the scan never got recorded, and every launch rescanned for about 6 minutes. play.sh now passes only the title's own files: - every regular file in `GAME`; - the readable folders that hold `.rpf` or `.ttpf` archives (`data/` and `pack/` here). The next launch printed "Shader cache already pretranslated for these paths and settings". ### 2. Options ported from play.ps1, with what Linux needs on top - **`MACHINE=laptop`** is `-Machine laptop` (docs/laptop-16gb.md): - threads by physical core count, `DSTORAGE_IO=direct`, `INPLACE=2`, 64 KiB windows with tails, `LEVELS_ON_DEMAND`, the working-set ceiling; - 1920×1080 output at half render scale through the title's own upscaler. On cards with 8 GB or more it also keeps 1 GB of card copies, set as the 4070 preset does (`CARD_BUFFERS_MB=1024`, `CARD_RESERVE_BUDGETS=1`, `CARD_BUFFERS_MIN_KB=64`), instead of 256 MB: - With 256 MB, the log showed "waited for flights, per frame: 153 ms ... for a buffer copy's source ... not done on the card: no host copy holds all of it". - With 1 GB that wait dropped to 24 ms a frame. - In game, 180 s per run, median fps: 4.0 → 9.0, then 12–14 once the caches were warm. - **`FRAMEGEN=1`** is `-FrameGen`. Under vkd3d-proton it needs two more things here: - **`VKD3D_CONFIG=single_queue`:** the AMD swap chain creates its own DIRECT queue at high priority and puts the real swap chain on it (`FrameInterpolationSwapchainDX12.cpp`, SDK 2.4.0). Without single_queue the window stayed fully black — fullscreen or windowed, panel on or off — even while it was only passing frames through. - Turning off `VK_EXT_present_timing` (another fork's fix for a white FG window) did not help here, and neither did turning off present_wait/id with FIFO forced. - Cost of single_queue: in the first pair of runs it was slower (13 → 9 fps in the same scene, frame generation off). Identical runs on this machine vary between 9 and 14 fps, so the size of that cost is not established. (Corrected: this line first said "about 30%".) - **An upscaler that gives frame generation its inputs:** with the laptop preset's `VICTORY_UPSCALER=6`, frame generation never runs (0 generated, `enabled=false`). Under `MACHINE=laptop`, `FRAMEGEN=1` therefore selects `FSR=performance`, which renders the same 960×540. - Result in the same scene: 8–10 rendered fps and 16–20 presented (2.0×). The log says "first AMD generation callback succeeded". - **`RAYTRACING=1`** is `-RayTracing`. - **`DLSS=` / `FSR=`** are `-Dlss` / `-Fsr`. - **`MORE="VICTORY_X=1 ..."`** is `-More`. - **`WARM=1`** is `-WarmPipelines` (`warm --used`). - `warm` only knows pipelines that an earlier run recorded with `VICTORY_PIPELINE_BOOK=1`. Without it, it printed "0 pipelines known" here, so `WARM=1` also sets `VICTORY_PIPELINE_BOOK=1`. - After one such run: "83560 pipelines known ... 2533 to make". - play.ps1's `-WarmPipelines` doesn't set the book either. I couldn't check that on Windows, so I've only flagged it here. ### Left out on purpose - `VICTORY_PLACED_FILL_REDIRECT=1` is #415. - From the open PRs, I tried #413, #414, #392, #395, #424 and #396 together, plus `VICTORY_KEEP_AHEAD=1` (#388) and `VICTORY_REAPER=1` (#247), in the same scene. None was faster than main on this machine (median 12–13 vs 14; KEEP_AHEAD 10, REAPER 9). Single runs vary by about ±20%, so these are one-machine observations, not verdicts on those PRs. ### Visual checks These were screenshots, not the full recordings AGENTS.md asks for. The picture with `FRAMEGEN=1` looked like the picture without it. A rainbow-speckled texture on one character's arm appears both with and without these changes. AI use: prepared with an AI assistant (Hermes Agent, model claude-opus-5-5). The measurements are from real runs on the machine above, and each number was checked against the run logs before posting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:21:49 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:35 UTC · original

Thanks for the detailed Linux-only measurements and for correcting the single-queue estimate. I'd keep the scanner path fix independently reviewable, preserve explicit launcher overrides, and measure FRAMEGEN and single_queue separately. Please report rendered and presented FPS independently and avoid generalizing the 8 GB preset to every adapter.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/430#issuecomment-7255215951) Thanks for the detailed Linux-only measurements and for correcting the single-queue estimate. I'd keep the scanner path fix independently reviewable, preserve explicit launcher overrides, and measure FRAMEGEN and single_queue separately. Please report rendered and presented FPS independently and avoid generalizing the 8 GB preset to every adapter.
github-bot closed this pull request 2026-11-30 17:08:44 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:07 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/430#issuecomment-7285758528) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.