Files
Dipshet 9603fb84d0 Added F3 debug overlay: FPS counters, frametime graphs
FPS/frametime counters (avg 0.5s), two fixed-time-interval frametime graphs (fps-independent, spikes preserved), present-wait metric (rex/ui/present_stats.h). Guest stats provider wired in OnCreateDialogs. Removed the old inline F3-only build watermark (moves to a standalone always-on drawer in a later commit).
2026-07-14 20:12:39 +02:00

21 lines
736 B
C++

/**
* @file rex/ui/present_stats.h
* @brief Lightweight presenter timing readouts for the debug overlay.
*
* @copyright Copyright (c) 2026 Project Gracemeria
* @license BSD 3-Clause License
*/
#pragma once
namespace rex::ui {
// Duration (ms) of the presenter's last swap-chain frame-latency wait - how long
// painting blocked on the GPU/display being ready to accept a new frame. A high,
// steady value means GPU-bound (the display/GPU is the bottleneck); ~0 means the
// pacing/limiter is the bottleneck (CPU-side), which is the healthy case. This is
// the analog of UnleashedRecomp's "Present Wait" profiler.
double GetLastPresentWaitMs();
void SetLastPresentWaitMs(double ms);
} // namespace rex::ui