Findings from two NVIDIA test machines: loop limit and hair, Series S black (FSR4 upscaler), texture VRAM budget, submission waits #1
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/uiliannn--VItoriaBr#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@HenriqueSBueno on GitHub · 2026-11-25 00:52 UTC · original
Hi! We've been testing the same title on NVIDIA cards (RTX 3080 10 GB + i5-10400F, and RTX 4060 8 GB + 16 GB RAM) on top of
fxceless/victory-fork, and wrote up what we found today. Some of it may save you time, since your tree syncs from that fork. No game data below; numbers and log strings only.Full reports: fxceless/victory-fork#176 (hardware report and follow-ups) and Marvisak/VIctory#1317 (a research dossier with ranked hypotheses).
1. Settings that matter (no code)
VICTORY_SHADER_LOOP_LIMITof 4096 or more. At 256 the main character's hair renders as long streaks; at 4096 it renders correctly. It stayed stable for 8+ minutes on the 3080 (no device loss). Below a few thousand, the hair shading loops are cut short.4e17478):VICTORY_DISPLAY_MODE=1920x1080 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_SHADER_LOOP_LIMIT=4096. Result: lit prologue, correct hair, pad movement, 3.2 fps (308 ms/frame), no device loss.Enterevery 4 frames from frame 55 to 220 (about 42 presses) gets through the menus on both profiles. A sparse time-based schedule (three presses) leaves the Series S profile stuck on the front end (14 draws/frame forever).2. Series S profile: why it is black
FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE, anda host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll"(victory-hle/src/modules/kernel.rs). The DLL is loaded on demand and is not one of the prepared title images, so the load fails.VICTORY_DISPLAY_MODE=1280x720the title still takes the FSR4 path.3. Textures (helps 8–12 GB cards most)
a803c87, which you already synced. Textures picked by index were uploaded once, before the title had written them, and kept zeros.resource::room()stops making host copies at 90 % of the card budget. On the 10 GB card about a third of the indexed textures were never uploaded (10,441 waiting against 21,050 uploaded).VICTORY_TEXTURE_BUDGET_MB=8000cut that to 2,614 waiting and the scene gained a lot of detail, but showed blocky tiles where textures had been uploaded while only partly mapped. Evicting idle host copies (LRU) would fit the textures in use instead of everything ever uploaded. Your 16 GB card is less affected.4. Performance notes
VICTORY_LATE_WAIT/VICTORY_RELAYdo: those remove the per-submission wait to overlap CPU and GPU, and gave the largest gain in our runs. It may be worth measuring both on your 5060 Ti, since serialising could cancel the relay gain.VICTORY_INPLACE=1only moved the time around, from copies to GPU (2.8–3.5 fps either way).ReadProcessMemory/WriteProcessMemorygo throughwineserverfor every piece, which explains ~107 MB/s copy rates (fxceless/victory-fork#118).list.rs,1 << 20), so the title's own culling never removes anything. That cost is per dispatch, not per pixel (fxceless/victory-fork#10).5. Diagnostics you may find handy
Two switches we wrote for our own branch (code on
HenriqueSBueno/VIctory, branchtest/queue-waits-translator):VICTORY_LOOP_LIMIT_SHADERS=ps:1024,ms:1024,vs:1024(or<hash>:<n>): loop caps per stage or per shader, so graphics loops can be capped without touching compute. Low caps on compute plus a cold shader cache trip the title's own watchdog during loading.VICTORY_DUMP_SHADERS=<dir>;<hash>,…: writes the named shader containers forvictory shader-info --disasm. That is how we found a lighting pixel shader whose outer loop exits on an equality with a bound read from a buffer. A producer that never ran turns it into a GPU hang.Happy to run your builds on the two NVIDIA machines and report back if that helps.
AI-assisted (Claude Code)
cargo xtask env; warn on unknown ones #83@flale1 on GitHub · 2026-11-25 01:12 UTC · original
Hi @HenriqueSBueno and @uiliannn, thanks for the detailed report and hardware data. From reading
main(e1586fb) without a GPU or game run, three points add context:Per-list serialization is gone: The 1-list-per-wait behavior attributed to
6f99f75is no longer there;submit()sends a submission's lists in a singleExecuteCommandLists, and only adiagnosticsbuild withVICTORY_GPU_TIMINGsplits per run.Per-stage loop defaults:
lower.rsresolves the1048576sentinel to128(pixel),256(vertex/mesh), and4096(compute). SettingVICTORY_SHADER_LOOP_LIMITto1048576,0, or an invalid value falls back to those defaults (mod.rs). Hair rendering as streaks under defaults is a compatible hypothesis, pending GPU validation.Stale
README.mdand undocumented env vars:README.mdstill lists old limits, whereasindirect.rsnow usesBUDGET = 1u << 27,65535mesh groups, andGROUPS = 1u << 20for compute. Two undocumented vars:VICTORY_HEAP_RECHECK(draw.rs,texture.rs): rechecks heap textures via a 48 KiB start/middle/end sampled fingerprint (=0disables; edits outside sampled windows can pass).VICTORY_FIRSTLANE_OWN(lower.rs): inhalves && !alikewhen not all lanes run,=1uses the host wave's own first lane instead of failing.AI-assisted (Claude Code).
@HenriqueSBueno on GitHub · 2026-11-25 01:26 UTC · original
@flale1 thanks for the correction. You're right: at
e1586fb,submit()sends a submission's lists in oneExecuteCommandLists, and onlyVICTORY_GPU_TIMINGsplits them. My point 4 was based on the README's description of6f99f75, not on the current code, so please disregard it. Good to know about the per-stage loop defaults inlower.rsas well. OurVICTORY_LOOP_LIMIT_SHADERSadds little there beyond a per-hash override.One more data point since the report: fxceless
c96b4f2makes the speed switches the defaults (~230 ms/frame where it was ~400 on their RTX 4070) and adds the depth bounds test, which lights the first room by its lamp. That may be worth the next sync.AI-assisted (Claude Code)
@xyzMikah on GitHub · 2026-11-26 10:20 UTC · original
RTX 5060 Ti 16 GB, Windows 11. Open to help, or to run builds if you need NVIDIA results.
Discord: billencipher
@lmouz823-lang on GitHub · 2026-11-27 13:53 UTC · original
Separate RTX 4060 Laptop 8 GiB datapoint on
15779f8(Windows 11 build 26200, driver 610.88). I built a release binary withdiagnosticsand only a local AppContainer scratch-path policy shim. Each Series X run used an independent copy of the same save/shader-cache seed, scripted Enter at 2 s and 18 s, and a planned cutoff after three heavy title-window samples. No device removal was logged, and no game data is attached.Shared settings:
VICTORY_RELAY=0,VICTORY_FILL_WAIT=1,VICTORY_CARD_BUFFERS_MB=1024,VICTORY_PAGE_WRITES=slots,VICTORY_AMBIENT=0.6,VICTORY_TEXTURE_NO_WAIT=1,VICTORY_WIDE_REFRESH=1,VICTORY_WIDE_MERGE=1,VICTORY_JOIN_COPIES=1,VICTORY_DISPLAY_MODE=1920x1080; GPU timing and DRED enabled. OnlyVICTORY_TEXTURE_BUDGET_MBor the on-demand switch changed:VICTORY_LEVELS_ON_DEMAND=1The on-demand log reported
tier=4 on=trueand 3272 MiB of unallocated texture levels near the cutoff, but total local usage still exceeded the DXGI budget. Lowering the explicit texture cap reduced the final logged host texture copies from 5094 to 3935 MiB, yet also remained over total budget. These are short cold-cache transitions with different draw/pipeline states, so the frame times do not establish a speedup; I have not yet compared the resulting images for missing textures. The explicit texture cap appears to limit that class of copies rather than total local VRAM. This may help evaluate #107/#119 and the memory discussion here.