Batched clamps' write log: no lock per declared write unless VICTORY_INDIRECT_BATCH=3 #4201
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!4201
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4200"
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?
@marquezlale-creator on GitHub · 2026-11-30 17:22 UTC · original
marquezlale-creator:pr/batch-notes-no-lock→main· +778 −820 · 32 files · 11 commits · closed without mergingWhat it changes
HostList::note_batch_writeis called for every write shaders declare (Shadow::gpu_writes/shader_writeson every path), thousands of times a frame, and it took the list's deferred lock each time. The log it fills is only read withVICTORY_INDIRECT_BATCH=3(HostList::batch_written); below that it is never created, so the lock was taken for nothing. It now returns first unlessdraw::batches() == 3.How it was tested
Nonethere); the list threads take one lock less per declared write. Found by reading while profiling the list threads; not measured on its own in fps.cargo testpassed for the crates it touches:cargo check -p victory --testsyes.Checked for overlap
🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed