GPU: allow first-use pipeline scheduling with a warm cache #845
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!845
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-845"
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?
@Lilith133T on GitHub · 2026-11-25 10:21 UTC · original
Lilith133T:diagnostics/early-pipeline-starts→main· +5 −1 · 2 files · 1 commits · draftThis adds
VICTORY_EARLY_PIPELINES=0to isolate eager pipeline creation when diagnosing rendering differences between a first launch and a warm launch. With the default setting, workers start previously used pipelines during loading. With the switch set, draws and dispatches request their pipelines on first use. Both paths continue recording the set for subsequent launches.On Windows with an RTX 5070 Ti (driver 610.88), a local integration build showed visible banding in the sky and flat shading on characters at a repeatable checkpoint. With the shader cache and driver library retained, I compared three runs:
The underlying rendering defect is still under investigation. The switch makes the comparison reproducible while preserving the learned list between runs.
I tested the standalone patch against
9376fd6withcargo test --locked --profile diag -p victory-gpu --features diagnostics --lib pipeline:: -- --test-threads=1(12 passed) andcargo xtask policy(171 files passed).@MamaLeVrai on GitHub · 2026-11-25 12:23 UTC · original · edited 2026-11-25 12:51 UTC
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
091b5aeintomainf85101bin a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with the errorsmainitself has on this machine (placed_filler_twins,depth_written, a sort, andmanual implementation of .is_multiple_of()atvictory-gpu/src/shadow.rs:2675; PR #841 fixes the first three), also with--all-features; this PR adds none. (Correction: my first version of this report said that theis_multiple_ofone was extra here. It is inmaintoo: my first baseline run ofmaindid not list it, and a run with--keep-goingon a cleanmaindoes.)cargo test --workspace --locked: run 1: stopped atindirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields(the one that fails onmainitself most runs here (PR #849 and #847 fix its assertion)); run 2: 565 passed, 0 failed, 12 ignored (mainalone: 555 passed, 0 failed, 11 ignored). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
@slauko on GitHub · 2026-11-25 14:01 UTC · original
A data point from the run that first had a saved library — for making this the default under Wine.
With
host pipeline library loaded bytes=312440 mapped=true(VIctory#1722's null blob, picked), the runtime loggedtitle pipelines to start early pipelines=1657and started 1,342 of them in the first seconds (started_early=1342). The title presented frames 1, 2, 4, 8, 16, 32 and no more; 31 s after launch its watchdog ended the run (0xc0000005attitle+0x2215c35, a write to 0; exit 5). The run never printed a frame line.The same binary, same prefix, with the library's folder moved away (
title pipelines to start early pipelines=0): 30.0 fps on the title screen for the whole run.With
VICTORY_EARLY_PIPELINES=0and the library back: the library loads, pipelines are requested on first use, the title screen runs at 25–30 fps, and the world comes up.Wine 11.0 (Proton Experimental), vkd3d-proton
master@ec20719, RTX 3080 Ti, release build. What the early starts block the title's main thread on is not measured; vkd3d-proton serialising pipeline creation behind eight workers would explain it. Worth knowing for anyone who picks #1722 or #885: the first run is fine, the second one is not.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.