Avoid one-off threads for singleton shader inputs #1874
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!1874
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1874"
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?
@NotADonky43 on GitHub · 2026-11-29 01:13 UTC · original
NotADonky43:perf/precompile-inline-singletons→main· +50 −23 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCFixes #1861. Offline
victory shaders/ the shader stage ofpreloadwalk files one at a time. When a file contains one container, spawning a worker and immediately joining it cannot overlap anything. Run a single worker on the caller. Multi-container inputs still use the existing parallel loop; hash, translate, cache, and reporting code is shared. Separate compiler processes are still independent. No change to the game or GPU pipeline caching.Matched released builds on
f9dfb76f, Windows RTX 5070 Ti, same adapter/settings, six simultaneous compiler processes, six disjoint shards of 512 input files. Both cold runs produced the same 3,031 unique cache paths with byte-identical values and the same success/refusal counts. Four warm runs per side interleaved: median wall 2.110 -> 2.005 s (~5%); cold single observation 24.45 vs 24.20 s, no substantial cold gain established. This is shader precompile, not PSO warm-up, scene loading or gameplay FPS.precompile_visits_each_source_once_and_singletons_stay_on_the_callerpassed on the f9 adaptation; checks empty, singleton, one-worker and multi-worker cases. No game data in code/test. Searched tracker/open PRs including #1313 (different preload changes).