GPU: texture refreshes no longer wait for title memory remapping by default #270
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!270
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-270"
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?
@fffluffy-dev on GitHub · 2026-11-24 23:06 UTC · original
fffluffy-dev:gpu/texture-no-wait-default→main· +44 −7 · 3 files · 1 commits · openTexture refreshes that find the runtime remapping title memory now read through the kernel instead of waiting (the earlier opt-in
VICTORY_TEXTURE_NO_WAIT=1; #178 showed the texture lane spent almost entirely waiting for that lock).VICTORY_TEXTURE_NO_WAIT=0restores the blocking read. A kernel read now counts as done only if it read every byte, so a partly unmapped range is retried on the next refresh; new testa_kernel_texture_read_requires_every_page_while_remapping.Validation (cargo-xwin, x86_64-pc-windows-msvc, tests under Wine): victory-gpu 111 passed, 1 ignored; victory-formats 24-25 passed;
cargo clippy --workspace --all-targets -D warningsclean with and without--all-features;cargo xtask policyok. Not measured on a real frame.AI use: written with Codex and Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.
@ryotdev on GitHub · 2026-11-24 23:37 UTC · original
Tested
2b1c205on an RTX 5070 (Windows x64, Ryzen 7 7800X3D). I used the same release executable for both runs, first withVICTORY_TEXTURE_NO_WAIT=0, then with the variable unset. Each started from the same private checkpoint and its own copy of the same pipeline-cache seed. This was an integration build on an earlier main with #63, a compute-shader fix, scripted input, and a local fix that records changed textures on the unlocked path. Both runs used all of those changes.Across 90 seconds after the same world-draw threshold, the 90th percentile of reported texture-refresh time (summed across workers per frame) fell from 171.6 to 33.5 ms, with a maximum of 1679 to 50.5 ms. The default path reported successful kernel reads in 53 of 77 windows and deferred reads in 37. In the last 30 seconds, the window title reported 230.7 → 209.5 ms/frame median (4.33 → 4.77 FPS) and 304.5 → 215.3 ms/frame at p90, at essentially the same load (4965 → 4973 median draws/frame). Across the full 90 seconds, title p90 was similar, 708.2 → 714.9 ms/frame.
One pair on one machine. These are periodic reported frame-time averages, and this run did not assess texture fidelity. The new two-page regression also passed natively on Windows. AI-assisted testing.
@Filip722 on GitHub · 2026-11-25 05:31 UTC · original
On an RTX 5060 Laptop GPU under Proton, the nonblocking branch ran during Series S loading. With it enabled, all 74 texture-refresh reports measured 0.0 ms/frame waiting for title-memory remapping at the log's precision. The fallback reported up to 13.5 successful kernel reads/frame and, in a separate interval, up to 7.0 refreshes/frame deferred.
The blocking control measured remapping waits above 300 ms/frame in 3 of 25 reports, peaking at 2,649.9 ms/frame. Both started from independent clones of the same offline profile and warm caches and used the same thermal policy, one dropped mip and retained-range CPU refresh. The control needed an additional account-picker input. The runs reached different loading stages and ended at the CPU temperature cutoff after 239.7 and 246.1 seconds. These runs verify that the fallback did useful work; they do not establish a frame-rate or world-entry improvement. Both stayed within the memory limits and used no process-group swap.
I tested the complete-read check and its exact two-page regression from
2b1c205c8d83fb20e2e07f0fd6d0c9544a3634a4on the private integration, enabling the existing switch explicitly. The Windows test passed both before and after that check on this Proton build: an incompletely committed range was rejected, and the full read succeeded after both pages were committed.Bazzite 44, kernel 7.2.9-ogc2.1.fc44.x86_64, NVIDIA 615.78.08, Proton Experimental 11.0-20261112, vkd3d-proton 3.2.0 (
ec20719452e916b), Rust 1.98.1 Windows MSVC target. Codex (GPT-6.2-Sol, high reasoning) assisted with testing and this report.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.