Add P2 visibility controls to editor diagnostics

This commit is contained in:
Emil
2026-09-23 22:24:59 +03:00
parent 0d2cae18fb
commit 724de134ca
7 changed files with 95 additions and 8 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

@@ -0,0 +1,11 @@
# P2 visibility diagnostics visual reference
![Generated visibility diagnostics prototype](p2-visibility-diagnostics-prototype.png)
Generated with the built-in image generation tool before implementing the developer overlay. This is a visual prototype, not a Faset screenshot or a feature specification. The greybox scene, values, metrics, and viewport controls in the generated image are illustrative. In particular, Faset does not report the prototype's triangle-visibility, HZB texture-size, or history-length numbers.
The implementation uses the prototype's compact three-mode visibility selector, near-black surfaces, restrained lavender selection, simple dividers, and grouping. It only reports actual `Renderer::FrameStats` fields and retains the existing ImGui diagnostics behavior. The runtime renderer and source code define functionality.
![Implemented diagnostics in the headless Vulkan test](p2-visibility-diagnostics-implemented.png)
The second image is the actual 640 × 420 test capture with a deliberately empty scene. It verifies the selected GPU frustum button and the real counters, with the panel scrolling on a small viewport.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB