Skip to content

Bruno/tracy opengl gpu zones#28

Draft
bruno-dasilva wants to merge 2 commits into
masterfrom
bruno/tracy-opengl-gpu-zones
Draft

Bruno/tracy opengl gpu zones#28
bruno-dasilva wants to merge 2 commits into
masterfrom
bruno/tracy-opengl-gpu-zones

Conversation

@bruno-dasilva

Copy link
Copy Markdown
Owner

TODO description.

bruno-dasilva and others added 2 commits June 7, 2026 01:54
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