Remove Redundant Access Specifiers
This commit is contained in:
parent
673f81c18a
commit
e1d078ada6
|
@ -16,22 +16,22 @@ public:
|
||||||
PerformanceMetrics(PerformanceMetrics&&) = delete;
|
PerformanceMetrics(PerformanceMetrics&&) = delete;
|
||||||
PerformanceMetrics& operator=(PerformanceMetrics&&) = delete;
|
PerformanceMetrics& operator=(PerformanceMetrics&&) = delete;
|
||||||
|
|
||||||
public: // Count Functions
|
// Count Functions
|
||||||
void Reset();
|
void Reset();
|
||||||
void CountFrame();
|
void CountFrame();
|
||||||
void CountVBlank();
|
void CountVBlank();
|
||||||
|
|
||||||
public: // Getter Functions
|
// Getter Functions
|
||||||
double GetFPS() const;
|
double GetFPS() const;
|
||||||
double GetVPS() const;
|
double GetVPS() const;
|
||||||
double GetSpeed() const;
|
double GetSpeed() const;
|
||||||
|
|
||||||
double GetLastSpeedDenominator() const;
|
double GetLastSpeedDenominator() const;
|
||||||
|
|
||||||
public: // ImGui Functions
|
// ImGui Functions
|
||||||
void DrawImGuiStats(const float backbuffer_scale) const;
|
void DrawImGuiStats(const float backbuffer_scale) const;
|
||||||
|
|
||||||
private: // Member Variables
|
private:
|
||||||
PerformanceTracker m_fps_counter{"render_times.txt"};
|
PerformanceTracker m_fps_counter{"render_times.txt"};
|
||||||
PerformanceTracker m_vps_counter{"vblank_times.txt"};
|
PerformanceTracker m_vps_counter{"vblank_times.txt"};
|
||||||
PerformanceTracker m_speed_counter{nullptr, 6000000};
|
PerformanceTracker m_speed_counter{nullptr, 6000000};
|
||||||
|
|
|
@ -43,10 +43,11 @@ public:
|
||||||
PerformanceTracker(PerformanceTracker&&) = delete;
|
PerformanceTracker(PerformanceTracker&&) = delete;
|
||||||
PerformanceTracker& operator=(PerformanceTracker&&) = delete;
|
PerformanceTracker& operator=(PerformanceTracker&&) = delete;
|
||||||
|
|
||||||
public: // Functions for recording and accessing information
|
// Functions for recording performance information
|
||||||
void Reset();
|
void Reset();
|
||||||
void Count();
|
void Count();
|
||||||
|
|
||||||
|
// Functions for reading performance information
|
||||||
DT GetSampleWindow() const;
|
DT GetSampleWindow() const;
|
||||||
|
|
||||||
double GetHzAvg() const;
|
double GetHzAvg() const;
|
||||||
|
@ -68,12 +69,10 @@ private: // Functions for managing dt queue
|
||||||
std::size_t inline QueueSize() const;
|
std::size_t inline QueueSize() const;
|
||||||
bool inline QueueEmpty() const;
|
bool inline QueueEmpty() const;
|
||||||
|
|
||||||
private: // Handle pausing and logging
|
// Handle pausing and logging
|
||||||
void LogRenderTimeToFile(DT val);
|
void LogRenderTimeToFile(DT val);
|
||||||
void SetPaused(bool paused);
|
void SetPaused(bool paused);
|
||||||
|
|
||||||
private:
|
|
||||||
// Handle not counting time during pauses
|
|
||||||
bool m_paused = false;
|
bool m_paused = false;
|
||||||
int m_on_state_changed_handle;
|
int m_on_state_changed_handle;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue