Skip to content

draft: opengl gpu zones#3123

Draft
bruno-dasilva wants to merge 3 commits into
beyond-all-reason:rel2606from
bruno-dasilva:tracy-opengl-gpu-zones
Draft

draft: opengl gpu zones#3123
bruno-dasilva wants to merge 3 commits into
beyond-all-reason:rel2606from
bruno-dasilva:tracy-opengl-gpu-zones

Conversation

@bruno-dasilva

@bruno-dasilva bruno-dasilva commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

claude code, not cleaned up yet. posting to share.

bruno-dasilva and others added 3 commits July 19, 2026 23:03
Introduce SCOPED_GL_GPU_ZONE, a combined annotation emitting the existing KHR_debug marker plus a Tracy GPU timing zone, and migrate the render-pass debug-group sites to it (WorldDrawer, Game, IWater, RoamMeshDrawer). Create the Tracy GPU context in CGlobalRendering::PostInit and collect query results once per frame in SpringApp::Update, plus a coarse per-phase GPU zone around each Lua draw call-in dispatch.

No-op unless built with TRACY_ENABLE; GPU paths are additionally guarded by HEADLESS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Expose tracy.GpuProfile(name, fn, ...), which brackets a protected call in a Tracy GPU zone so the LIFO query stream stays balanced even if the Lua call errors. Intended to be driven from a widget/gadget handler's central dispatch to attribute GPU time per addon.

Registered only when the TracyLuaGpuZones config is enabled, so the function is absent from the Lua environment otherwise.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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