mesh=false hosts drop the whole world; and VICTORY_TEXTURE_BUDGET_MB reliably gets the device removed #415
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#415
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?
@2150272538-jpg on GitHub · 2026-11-25 00:30 UTC · original
GPU: RX 5700 XT 8 GB (RDNA1, FL 12_1, no mesh shader)
OS: Windows 10 19045, system d3d12.dll 10.0.19041.5794
Runtime: Agility SDK 1.606.3 (D3D12Core.dll + d3d12SDKLayers.dll next to the exe, /EXPORT:D3D12SDKVersion,DATA and D3D12SDKPath,DATA)
CPU: Xeon E5-2698 v3, 16C/32T, 16 GB RAM, 32 GB pagefile, TdrDelay=60
Title: 7952987A, game_scarlett_master.exe, 208.6 GB, data on NVMe
Source: fxceless/victory-fork @
2119b0e, release build, 1920×1080 (and 1280×720)What works
Menus, account picker, language list, brightness calibration (Chinese UI), the loading art and the intro camera beat all render correctly, at 30 fps on the loading screens. shader does not translate went 413 → 0 and no host texture 33 → 0 compared to the older tree I started from, and I get 0 device removals in a 300 s run where the old tree died at 263 s. Nice work on
e9765a7.Issue 1 — no mesh shaders means no world (expected? worth stating)
代码块
INFO victory_gpu::host: host mesh shader support mesh=false
WARN victory_gpu::pipeline::host: no host pipeline: the host GPU has no mesh shaders (or no shader model 6.6) (logged once)
shaders=[mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10]
Per frame:
代码块
dropped 1232-1286 without a host pipeline (0 being made) and 4055 indirect
Only vertex/pixel geometry survives (hair, trees); ground, buildings and the character body never draw.
Two sub-questions:
Is a non-mesh fallback (meshlet cull on compute + draw-indirect of expanded verts) something you'd accept a PR for, or is it out of scope?
WARP reports mesh=false too on this runtime. Is that a WARP limitation you know about, or should VICTORY_D3D12_WARP=1 be documented as "menus only"?
Issue 2 — VICTORY_TEXTURE_BUDGET_MB=6144 kills the device in ~220 s
720p, speed switches on (VICTORY_LATE_WAIT=3, VICTORY_WIDE_BACK=1, VICTORY_CARD_BUFFERS_MB=1024), budget 6144:
代码块
victory_gpu::host: host GPU device removed after 16 submissions sent ahead (VICTORY_LATE_WAIT=1) of 128 lists;
no breadcrumbs (0x887A0004)
device removed: GPU 不响应更多的命令 (0x887A0007)
GPU frame time right before: 900 → 1902 → 3942 → 4768 ms.
Two things look suspicious to me:
The submissions themselves are short (slow host submission ms=329 lists=15, ms=331 lists=30), far under any TDR threshold, yet GetDeviceRemovedReason() is 0x887A0004 (UNSUPPORTED) — same reason code I get on the older tree at 1080p/263 s.
Just before the hang the log shows a sweeper releasing copies (sweep: N host copies ... let go) and then
代码块
indirect execution dropped (first time for this signature) stride=20 args=1, 32761, 1325099172, 32761 max=1
1325099172 looks like an unclamped address/index rather than a count — could the budget sweep be freeing a resource the in-flight indirect args still reference?
Control runs on the same build: budget 4096 → no device removal but 71 × 0x8007000E (no host list for a prelude, no upload buffer size=11189768); no budget → 0x8007000E at 113 s. So on 8 GB there is no setting that both fits and survives — I'm reporting it in case the failure mode is useful, not because I expect 8 GB to work.
Issue 3 — docs: the binary needs the Agility exports
Out of the box on Win10 the build gets nothing on screen: every pipeline is refused with Unsupported bit-flag set (root signature flags c01) then E_INVALIDARG, because the translated DXIL uses SM 6.6 (ResourceDescriptorHeap[], SamplerDescriptorHeap[]) and the system runtime is 19041. Removing the 0x400/0x800 root-signature flags is not enough — the DXIL is 6.6 regardless. What fixed it was adding D3D12SDKVersion = 606 / D3D12SDKPath = "D3D12\" and shipping Agility 1.606.3. If that's the intended requirement, a line in the README next to "shader model 6.6" would save the next person a day.
Happy to provide
crashes.log, the two minidumps, full logs (F:\run-*.err) and the RT dumps if useful — say which and I'll put them in a gist.
@Kcaiooooo on GitHub · 2026-11-25 00:45 UTC · original
I traced the texture-budget part of this report on current main (
a803c87). Inresource::room(), settingVICTORY_TEXTURE_BUDGET_MBmakes the check return based solely on the bytes held by these texture copies. The process's total local video-memory usage reported by DXGI is then ignored. A6144MiB texture cap can therefore still admit new copies when the process is already near its DXGI budget because of other allocations.The candidate below keeps the manual cap and also uses main's existing 90% DXGI budget threshold when the adapter reports a budget. It preserves the default path and keeps using the manual cap if budget telemetry is unavailable. This is a guard on admitting new copies; the device-removal cause and the suspected in-flight resource lifetime issue remain open.
I tested the decision in isolation with an 8 GiB budget. At 4 GiB of texture copies and 7,800 MiB of total usage, the original rule admitted another copy and the candidate declined. The regression test passed with the patch, and
cargo check --locked --target x86_64-pc-windows-msvc -p victory-gpu --tests --features blake3/purepassed from Linux. I haven't run this on an RX 5700 XT or in the title.If you're able to retest, could you compare this patch against the same revision with
VICTORY_TEXTURE_BUDGET_MB=6144and share whether device removal still occurs, or whether the texture queue instead reports that the card has no room? Keeping the other flags and cache conditions fixed would help distinguish the two outcomes.Patch against
a803c87AI assisted with the code, regression test, and report. No title data was used.
@2150272538-jpg on GitHub · 2026-11-25 01:17 UTC · original
Tested this on the exact configuration you asked for.
Setup. RX 5700 XT 8 GB (RDNA1 — no mesh shaders, so the world itself doesn't draw, but this failure reproduces during the prologue/loading phase), 1280×720, identical flags in every run:
VICTORY_LATE_WAIT=3,VICTORY_WIDE_BACK=1,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VICTORY_TEXTURE_BUDGET_MB=6144, with the shader cache warm and shared between runs.I applied your diff to
2119b0e(theroom()body matched verbatim, so the patch applied as-is apart from line numbers) and rebuilt release with the same Agility 1.606.3 setup. Your regression test passes here on Windows/MSVC:cargo test -p victory-gpu --lib manual_texture_limit→resource::tests::manual_texture_limit_respects_other_video_memory_use ... ok.Four runs, alternating between the two builds on the same machine:
the card has no room for moreno shared buffer (0x8007000E)device removed2119b0e2119b0eWhat I see:
no shared buffer ... size=8388608warnings while still presenting frames. So once the texture-copy path is gated, the binding allocation moves to the 8 MiB shared-buffer pool, whichroom()doesn't cover.2119b0ewith these same settings, I gothost GPU device removed after 16 submissions sent ahead (VICTORY_LATE_WAIT=1) of 128 lists; no breadcrumbs (0x887A0004) ... (0x887A0007)at 220 s. So that mode is not deterministic run to run, which is consistent with your "in-flight resource lifetime" hypothesis staying open — an admission guard wouldn't address it either way.a host command list did not close (0x8007000E): a command recorded into it was invalid.One question:
the card has no room for more; they waitis loggedonce!, so the log can't tell you how many frames ran starved — I only know from theno shared bufferflood that followed. Worth adding a counter or a periodic summary line?I can put the four logs (10–20 MB each) and this machine's
crashes.log/dumps in a gist if useful, and I'm happy to test a follow-up that applies the same budget check to the shared-buffer pool, or that queues/retries those allocations instead of dropping them.