Repository navigation
Shaders: budget each DXC compile by the size of its source - #1724
PracticalStudios wants to merge 1 commit into
Conversation
A compile reserves 1 GB, or 1 GB per MB of HLSL from 8 MB, instead of a flat 1 GB. A heavy one no longer skips the budget after 60 s or when the title waits: it runs when it fits, or alone. Several of them at once ran --precompile out of memory (xcl-dev#1269).
82e608a to
8e0cb77
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1724 verificationClean detached head Tested STOR-WINLAB ran Windows 11 build 26200 on an AMD Ryzen 7 3800X and Intel Arc A770 with driver 32.0.101.9175. DXC reported 1.9.2609.5. Rust was
Workspace failures and skips
Not tested Matched AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
DXC compiles now reserve memory by source size instead of a flat 1 GB, and a heavy compile (8 MB of HLSL or more) can no longer skip the budget. Part of #1269.
Why: programs over 8 MB take more than 12 GB each in DXC; several at once ran
--precompileout of memory (@Sergentval, @LRF17 in #1269).What is in it
dxc.rs: a compile reserves 1 GB, or 1 GB per MB of HLSL from 8 MB. A heavy one runs when it fits, or alone. A heavy compile the title waits for briefly holds back background compiles so it is not starved. Unit tests for the rules.Tested
cargo test --workspace --no-fail-fast -- --test-threads=2: 870 passed, 1 failed, 42 ignored. The failure (kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory) fails the same way onmainon this machine.Regression run
.\scripts\smoke.ps1 -Game <retail title> -Seconds 60, no input,mainfirst, same machine:Not tested
AI use