Batched clamps' write log: no lock per declared write unless VICTORY_INDIRECT_BATCH=3 #4200
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by marquezlale-creator on 2026-11-30T17:22:12Z.
What 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:45:51Z.
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