build,hle,docs: bound parallel DXC builds, support LARP_LICENSES, and auto-set NVIDIA shader heap #531
No reviewers
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/gamingwithhomie--larp!531
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-531"
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?
@ZerefDragnee1l on GitHub · 2026-12-06 01:56 UTC · original
ZerefDragnee1l:build/bounded-parallel-dxc-addons-and-auto-nvprofile→main· +196 −20 · 7 files · 1 commits · openSplits the remaining build, subrender guard, and docs improvements out of #408 onto current
main, addresses @vanya890's build-memory feedback (#249), and adds opt-in offline add-on licensing + automatic Windows NVIDIA shader heap configuration.Summary
apps/larp/build.rs,Cargo.toml):min(available_parallelism, 4)(overridable viaLARP_DXC_JOBS, clamped1..=16).> 150 KiB, including191ecaed66eea3b1.compute.hlslfrom #249) to compile serially outside the worker pool so multiple largedxcinvocations never stack peak host RAM concurrently.codegen-units = 1in[profile.release](keepinglto = "thin"and diagnostics compatibility).apps/larp/src/subrender.rs): Guardsdirty_wordsrow length and bounds before indexing.crates/larp-hle/src/modules/xstore.rs):LARP_LICENSESis set (all,*, or comma/semicolon/whitespace-separated Store IDs, case-insensitive; e.g. granting Ultimate Edition Upgrade & Vice City Pack offline).larps_licenses_env_controls_durable_ownership.apps/larp/src/nvprofile.rs,apps/larp/src/run.rs):ensure_default_heap_silent()ensures0x001ABC0Fis at least1024 MiBon native Windows when NVIDIA DRS is present (skipping writes if already>= 1024 MiB, quietly ignoring permission/no-NVIDIA conditions, and opt-out viaLARP_NO_AUTO_NVPROFILE=1).docs/environment-variables.md): Documents--card-budget,LARP_ALIAS_SHARE,LARP_CORES,LARP_DSTORAGE_CACHE_GB,LARP_RT_WHOLE,LARP_SHADER_OPT,LARP_SKIP_PIPELINES,LARP_DXC_JOBS,LARP_LICENSES, andLARP_NO_AUTO_NVPROFILE.Related: #249, #421
Verification
git diff --check-> cleancargo check -p larp-> exited 0cargo test -p larp-hle --lib xstore->1 passed; 0 failed; 0 ignored; 81 filtered out(larps_licenses_env_controls_durable_ownership).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.