Declare each shader-written range once per list #29
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!29
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/29/head"
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?
@romainhedouin on GitHub · 2026-11-25 12:32 UTC · original
romainhedouin:perf/gpu-write-dedupe→main· +24 −17 · 1 files · 1 commits · merged 2026-11-25 17:09 UTCEvery draw that writes a buffer added a "shaders write this range" step, even when an earlier draw of the list had already added the same range. Each of these steps also forced a flush of pending refreshes, and at submission they were de-duplicated by comparing each one with all the others. Now a range is added once per list until the title next writes memory (the rule refreshes already use), and submission de-duplicates with a hash set. Repeated steps did nothing, so the result is the same.
"Model benchmark" = the same logic copied into a standalone program and timed in release mode on a Mac, not in the game. Type-checked for Windows (
cargo clippy --target x86_64-pc-windows-msvc, with and without--all-features, no new warnings); not run.🤖 Generated with Claude Code