Repository navigation
Conversation
|
Both the watchdog hook and the bigger worker stacks are needed on native Windows too. Data from an RTX 5080 (Windows 11, driver 621.24, 32.0.16.2124, Ryzen 7 5700X3D, 32 GB) running this repo at
AI-assisted (Claude Code). Counts and hashes only; nothing from the game attached. |
ErRusso
left a comment
There was a problem hiding this comment.
Reviewed at aabca38 against 90228a7 (six commits behind current main).
This is a 1,334-line bundle of three separate changes (DXC fallback, watchdog hooks, 32 MiB pipeline stacks) from an old base. The DXC part overlaps #20/#174/#127 and does not include #20's missing-RTS0 check, so the twins' root-signature failure is not covered. The other two changes are unrelated to the DXC fallback and should be separate PRs.
Please split this into focused changes, rebase onto current main, and coordinate the DXC part with #20; as one PR it conflicts with the Linux/Proton work already in review.
The translator lowers large shaders with recursion. On the world's mesh programs it overflowed the default 2 MiB, the worker died, and the title waited forever for a pipeline that was never made. 128 MiB still overflowed on four compute programs; those recurse without bound and are skipped per run. 512 MiB covers the rest. The workers are half the logical processors, capped at 8, so this reserves at most 4 GiB of address space, not committed memory.
aabca38 to
bd212f9
Compare
|
Split as asked. This PR is now only the 512 MiB pipeline-worker stacks (one file, six lines):
The old head is kept at On the value: the branch had already gone past 32 MiB before this was opened — 128 MiB still overflowed on four compute programs, which is why the diff says 512 MiB. @Peppacodes' data from NVIDIA's compiler on Windows is why it is well above 64 MiB; those four recurse without bound and are skipped per run. |
The pipeline workers run on Rust's default 2 MiB stack. On the world's largest mesh programs the translator's recursion overflowed it, the worker died, and the title waited forever for a pipeline that was never made: the log stops after
host pipeline: making shaders=["mesh …"], CPU stays busy, no frame is presented.The workers are half the logical processors, capped at 8, so a 512 MiB stack reserves at most 4 GiB of address space. Windows reserves stack, it does not commit it.
55679a0547649d0b,afeea48bbb9913ad,e8c962358d862e3f,44a9625f01769f33).This is not Linux-only: on Windows, @Peppacodes saw the overflow inside NVIDIA's own shader compiler (
nvgpucomp64.dll) on a pipeline worker, which is why the value is well above their 64 MiB.This is the stacks part of the original #28, split as asked. The DXC fallback belongs to #20, the watchdog hooks to the loader PR, and the copy/pipeline-library work to its own PR.
Checked with
cargo xwin check --all-targets -p victory-gpu --target x86_64-pc-windows-msvc. Not run in the title: no game files here.