[PERF] Host Desktop Frame Pacing and Presentation

This commit is contained in:
2026-04-20 11:12:32 +01:00
parent f622387f4a
commit f0663856c3
5 changed files with 206 additions and 8 deletions
@@ -131,6 +131,16 @@ The host may:
- observe buffers separately
- identify excessive redraw
Host-owned overlay or inspection surfaces MUST observe the last published logical frame rather than force continuous redraw to probe for changes.
When overlay, debugger, or other host-only diagnostics become visually stable:
- the host MUST preserve the last valid visible image;
- the host MUST NOT keep recomposing the surface by continuous polling alone;
- additional redraw is only justified by a newly published logical frame or a host-owned invalidation event such as overlay toggle, resize, expose, or explicit debugger-visible state transition.
Paused or breakpointed execution does not grant permission to swap logical machine buffers just to sustain a host-only HUD.
## 6 Time Profiling (Cycles)
### 6.1 Per-Frame Measurement