WIP: Register distinct shader containers concurrently #649
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!649
Loading…
Reference in a new issue
No description provided.
Delete branch "SmallDevBigNothing/Darner:codex/parallel-shader-intern"
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?
Refs #541
What it changes
The shared shader table holds its mutex while copying a new container and scanning its bytes for lighting or mirror roles. Give each content hash its own initialisation cell. The table lock covers lookup and insertion, and threads can initialise different shaders independently. Requests for the same shader still share one container and translation. Shader cache keys are unchanged.
How it was tested
Tested
d0fffa2againstc8258f9on a Core Ultra 5 225F and Windows 11 build 26100.Replayed 161,376 calls from a local pipeline book in an optimised standalone harness, using the revisions' registration and classification code. The same 19,100 distinct containers and classification counts were observed. File reads and parsing were outside the timed interval. Four fresh processes per build and thread count, alternating which build went first.
cargo test --locked --profile fast -p darner-gpu --lib pipeline::tests::: 8 passed, 2 ignored. The new test checks that eight concurrent requests share the same classified shader.cargo build --locked --profile fast -p darner,cargo clippy --locked -p darner-gpu --all-targets -- -D warnings, asset policy andgit diff --checkpassed. Full workspace gates were outside this check.Gameplay smoke test: RTX 3060 12 GB, Series S 960×540 to 1080p, DLSS Performance, FSR 3 ×2, RT off. The patched build completed the 42 s scene window with a warm pipeline library, zero dropped CSV rows and zero host pipeline creation failures.
Scope: the replay measures CPU time in shader registration. Total loading time, driver compilation and steady-state FPS were outside the A/B.
Checklist
main.docs/asset-policy.md.Checked for overlap
WIP: [pr-performance][shaders][startup] Register distinct shader containers concurrentlyto WIP: Register distinct shader containers concurrentlyView 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.