Files
Towards/modules/client/src/debug/tools/PerformanceStatsGui.hpp
T

25 lines
391 B
C++
Raw Normal View History

2026-07-18 14:31:15 +02:00
#pragma once
#include "runtime/LockStep.hpp"
namespace tw::dbg::tools {
class PerformanceStatsGui {
private:
LockStep& m_lockstep;
std::vector<uint32_t> fps_history;
std::vector<uint32_t> frame_idxs;
uint32_t fps_history_idx = 0;
uint32_t frame_idx = 0;
bool is_plot_filled = false;
public:
PerformanceStatsGui(LockStep& lock_step);
void draw();
};
}