Skip to content

WebGPU: remove leftover diagnostic scan from the uniform-set bind hot path - #8

Open
octopusburrow wants to merge 1 commit into
dwalter:webgpu-4.6.2from
octopusburrow:perf-remove-dead-diag
Open

WebGPU: remove leftover diagnostic scan from the uniform-set bind hot path#8
octopusburrow wants to merge 1 commit into
dwalter:webgpu-4.6.2from
octopusburrow:perf-remove-dead-diag

Conversation

@octopusburrow

Copy link
Copy Markdown

A sync-conflict diagnostic in command_bind_render_uniform_sets iterates every bound
texture against every framebuffer attachment on each call, and its body only increments
a function-local counter — nothing reads it, in any build configuration, and no print
consuming it exists anywhere in the history available on either the fork or upstream
(the surviving "limited to a few prints" comment suggests one once did). The scan runs
on every uniform-set bind of every draw — in both eye passes under two-pass XR — and in
any scene that never reaches its 20-match cap it runs for the whole session. Pure
deletion; no behavior change.

… bind hot path

The scan iterated every bound texture against every framebuffer attachment
on each command_bind_render_uniform_sets call, and its body only increments
a local counter — the print it fed was removed. In any scene that never
reaches 20 matches it runs for the whole session, on the hottest CPU path,
twice per frame in two-pass XR. No behavior change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant