Bruno/tracy opengl gpu zones#28
Draft
bruno-dasilva wants to merge 2 commits into
Draft
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO description.