GPU: cap command lists per submission (VICTORY_SUBMIT_MAX_RUNS) #1462
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1463"
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?
Imported from Marvisak/VIctory. Originally posted by Bebrik229 on 2026-11-24T18:13:32Z.
A title frame's runs go to the queue in one
ExecuteCommandListscall and the host waits on the fence, so a batch of heavy compute work stalls the device for its whole duration: on an RTX 5070 a 28-list batch held the GPU for ~63 s and Windows removed the device (0x887A0006) after the ~2 s reset threshold, ending the run.VICTORY_SUBMIT_MAX_RUNSsplits the batch into chunks of runs, keeping each submission's worst-case GPU time bounded; the default keeps every run in one call as before. The per-list timing path (VICTORY_GPU_TIMING) still submits each run on its own.Observed on the Grand Theft Auto VI title: a deterministic 28-run batch of compute lists took 63 s on the GPU and removed the device twice; with the cap at 4 the same content submits in bounded chunks.
Imported from Marvisak/VIctory. Originally posted by pfhandler on 2026-11-24T20:50:18Z.
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T22:49:47Z.
Review: APPROVED
Tested
68f23d9on Windows 11, RTX 5070, MSVC: builds,cargo test --workspace --no-fail-fast644 passed, 0 failed (on our fork main), clippy-D warningsclean with and without--all-features.VICTORY_SUBMIT_MAX_RUNSunset,max_submit_runs()isusize::MAX, sobounds.chunksyields one group covering every list. The default submission is exactly as before.firsts, so each run's prelude stays in the sameExecuteCommandListscall as its list. Splitting between runs is a configuration theVICTORY_GPU_TIMINGpath already exercises, including the state decay between calls.timing(). It indexesruns[i]by group, which only lines up when there is one run per group.tracing::warn!for a set but invalidVICTORY_SUBMIT_MAX_RUNSwould save a confused run.Merged into our fork's main.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:29:04Z.
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/host.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.