feat/cloud-performance-profiling #111

Merged
akadmin merged 5 commits from feat/cloud-performance-profiling into main 2026-07-11 20:50:20 +00:00
Owner

closes #34

closes #34
- GpuProfiler (src/renderer/profiler.rs): per-slot Vulkan timestamp QueryPool,
  stamps at shadow / cloud-march / sky / geometry / composite boundaries,
  readback rides the ADR-0022 frame-boundary fence in wait_for_slot,
  EMA-smoothed GpuTimings surfaced via FrameStats.gpu in the editor footer
  and the runtime binary; no-op on queues without timestamp support
- cloud_fragment.glsl: empty-space skipping — coarse 2-plane cheap-density
  probes outside clouds, refine on hit, back to coarse after 10 consecutive
  zero fine samples (roadmap item 27); fine samples keep the exact ADR-0050
  jittered planes
- roadmap item 27 updated with landed/open status; ADR index + CLAUDE.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- new ui/profiler.rs: TopBottomPanel docked above the footer; collapsed
  22px tab strip with gpu/cpu summary, expanded view with per-pass
  breakdown (swatch/ms/%/bar) and a hand-painted 240-frame graph of raw
  per-pass, GPU-total, and CPU times (nice-number Y scale, 16.7ms budget
  line); series colors CVD-validated against the dark surface
- GpuProfiler keeps unsmoothed spans (FrameStats.gpu_raw) so the graph
  shows real spikes; smoothed FrameStats.gpu feeds the breakdown numbers
- footer drops the cramped gpu text line (the tab owns it now)
- ProfilerState (open flag + sample ring buffer) on EditorState, same
  pattern as SceneGraphState; unit tests for nice_ceil, series_points,
  and the history cap

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
docs: record measured cloud budget — 1.66ms on target hardware, #34 target met
Some checks failed
CI / build (pull_request) Failing after 2m55s
d80f59e29f
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix: f32-suffix Stroke literals for CI's float-literal-f32-fallback lint
All checks were successful
CI / build (pull_request) Successful in 3m34s
0c8ce2711e
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
akadmin deleted branch feat/cloud-performance-profiling 2026-07-11 20:50:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
akadmin/NemesisEngine!111
No description provided.