mirror of
https://github.com/sal063/AC6_recomp
synced 2026-08-24 08:00:03 -04:00
9603fb84d0
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).
21 lines
736 B
C++
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
|