[perf] Acquire/present barriers use ALL_COMMANDS scope (Window.cpp) #117
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found by an adversarially-verified performance audit (confirmed real after a skeptic pass).
Location:
implementations/Crafter.Graphics-Window.cpp:818-893Severity: low · Effort: trivial · Category: sync
Problem
The acquire dst and present src barriers use
ALL_COMMANDSscope; the swapchain image is only written by compute/RT.Fix
Narrow to the actual writer stages — use the union
COMPUTE_SHADER | RAY_TRACING_SHADER | TRANSFER(notCOMPUTEalone; that under-syncs RT passes). These are frame-edge barriers, so the practical bubble is small.Merged into #115 — the inter-pass and acquire/present ALL_COMMANDS barriers share one fix (derive the real per-pass stage union, including RAY_TRACING_SHADER) and are a single co-dependent deliverable.