gpu/land: raise default landing thread cap from 4 to 8 on high-core CPUs #4614
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4614
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4613"
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?
@TheOriginalF on GitHub · 2026-11-30 23:50 UTC · original
TheOriginalF:perf/land-default-threads-up-to-8→main· +17 −1 · 2 files · 1 commits · openWhat it changes
In
crates/victory-gpu/src/land.rs,threads()previously capped the automaticvictory-landworker count at4((available_parallelism / 4).clamp(1, 4)). On 24–32+ logical-core CPUs under heavy readback workloads (~535 landing jobs / ~55–63 MB copied back per frame in Series X 4K +VICTORY_HW_RT=1),merging what was fetchedspent~96 msof CPU time across 4 threads (31.4 msmedian wall time per frame), making landing a major bottleneck on the relay thread.default_threads_for(parallelism: usize) -> usizeand raised the automatic upper clamp from4to8((parallelism / 4).clamp(1, 8)), leaving 8–16 logical-core CPUs unchanged at2–4threads and scaling 24–32+ logical-core CPUs to6–8threads (VICTORY_LAND_THREADSoverride.clamp(1, 16)unchanged).default_threads_scale_up_to_eight_on_high_core_cpusincrates/victory-gpu/src/land/tests.rs.How it was tested
4K), DLSS Balanced, Frame Generation On (2x),VICTORY_HW_RT=1,VICTORY_WINDOW_KB=1024,VICTORY_WINDOW_TAILS=1,VICTORY_PIPELINE_WORKERS=6,-Fps 30 -NoMenu.VICTORY_LAND_THREADSchanged between4and8):VICTORY_LAND_THREADS=4,287.2 s,0errors):landmerge wall:31.40 msmed /32.07 msavg (538jobs/frame)relaytotal landing (copying back):48.35 msmed /50.07 msavg (17.6flights/frame)draws >= 1500(n=43):13.80med /13.70avg fps (72.2 msmed)draws >= 5000(n=24, ~7,359draws):13.30med /13.32avg fps (75.2 msmed,p95 104.6 ms)frame_timesavg p95 (n=216):137.9 ms; GPUcardmeter:38.48 ms; peak commit:63,542 MBVICTORY_LAND_THREADS=8,286.7 s,0errors):landmerge wall:27.59 msmed /28.66 msavg (-3.81 ms/-12.1%) (534jobs/frame)relaytotal landing (copying back):44.65 msmed /45.76 msavg (-4.31 msavg) (17.6flights/frame)draws >= 1500(n=44):14.55med /13.83avg fps (68.8 msmed,+5.4%med)draws >= 5000(n=23, ~7,172draws):13.90med /14.01avg fps (+5.2%avg,71.8 msmed,p95 89.6 ms/-15.0 ms)frame_timesavg p95 (n=223):115.5 ms(-22.4 ms); GPUcardmeter:38.45 ms; peak commit:61,609 MBcargo testpassed for the crates it touches: yes (cargo test -p victory-gpu --lib --locked land::— 10 passed, 0 failed, 1 ignored;cargo clippy -p victory-gpu --lib --locked— 0 new warnings;xtask policy --staged— ok)Checked for overlap
land_cardguard opens inland.rs, orthogonal to default thread count)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.