allow tuning warm child batch size via DARNER_WARM_BATCH #648
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!648
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/warm-batch-env"
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?
Note: This exact Darner revision has not yet been run end-to-end in the game on Darner main. The same tunable batch option has been used during full pipeline precompilation on our Windows 10 (i7-8700, RTX 3080 20 GiB, 32+ GiB RAM) fork; the default batch size remains unchanged at 40, and this Darner port passes all 24
warm::testsand all workspace gates.Contributor role (optional)
What it changes
apps/darner/src/warm.rs,AT_ONCEis hardcoded to40pipelines per child process.darner warmanddarner preload) compiles tens of thousands of pipelines (up to ~84,000) in isolated child processes to contain driver compiler crashes and RAM growth. At 40 pipelines per child, a full warm-up spawns over 2,000 child processes, forcing each process to re-initialize D3D12 and re-scanknown-shaders.binandknown-pipelines.binfrom scratch. On higher-RAM machines (32 GiB or more), that repeated process startup overhead dominates warm-up time for users waiting to play.DARNER_WARM_BATCHenvironment variable parsed byparse_batch_size(), keeping the default unchanged at40(preserving low-RAM safety for users who set nothing) and clamping explicit values to1..=4000so the--thesecomma-separated argument stays safely below Windows' 32 KiB command-line length limit. Adds unit testwarm::tests::warm_batch_size_defaults_and_clamps.How it was tested
74c7d47(PR branch onc8258f9) and96096db(merged intoriley/all)cargo clippy --workspace --all-targets --locked -- -D warnings: passed (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed (0 warnings)cargo xtask policyandcargo xtask policy --staged: passed (576 files ok)cargo test -p darner --bin darner --locked warm::tests::: passed (24 passed, 0 failed)40whenDARNER_WARM_BATCHis unset or invalid)1..=4000clamping.74c7d47and96096dbdarner warm/darner preloadworkflow (no in-game rendering change)darner warmtiming comparison on Darner main not yet logged.Checklist
main.docs/asset-policy.md.Checked for overlap
[pr-performance][warm] allow tuning warm child batch size via DARNER_WARM_BATCHto allow tuning warm child batch size via DARNER_WARM_BATCHTest needed — commit
74c7d47a; what to check:apps/darner/src/warm.rs,AT_ONCEis hardcoded to40pipelines per child process.darner warmanddarner preload) compiles tens of thousands of pipelines (up to ~84,000) in isolated child processes to contain driver compiler crashes and RAM growth. At 40 pipelines per child, a full warm-up spawns over 2,000 child processes, forcing each process to re-initialize D3D12 and re-scanknown-shaders.binandknown-pipelines.binfrom scratch. On higher-RAM machines (32 GiB or more), that repeated process startup overhead dominates warm-up time for users waiting to play.DARNER_WARM_BATCHenvironment variable parsed byparse_batch_size(), keeping the default unchanged at40(preserving low-RAM safety for users who set nothing) and clamping explicit values to1..=4000so the--thesecomma-separated argument stays safely below Windows' 32 KiB command-line length limit. Adds unit testwarm::tests::warm_batch_size_defaults_and_clamps.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.