summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorSam Belliveau <sam.belliveau@gmail.com>2022-12-23 20:13:01 -0500
committerSam Belliveau <sam.belliveau@gmail.com>2022-12-23 20:13:01 -0500
commite1d078ada6c92c5619bbf11f654df855e0ca04ff (patch)
tree656a5b06f3b62c28fc96b5ae62e18328e4b0b0f9 /Source
parent673f81c18a7ec5af6d243d5ac4e90b5778c69385 (diff)
Remove Redundant Access Specifiers
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/PerformanceMetrics.h8
-rw-r--r--Source/Core/VideoCommon/PerformanceTracker.h7
2 files changed, 7 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/PerformanceMetrics.h b/Source/Core/VideoCommon/PerformanceMetrics.h
index e5dc87b801..e486f17729 100644
--- a/Source/Core/VideoCommon/PerformanceMetrics.h
+++ b/Source/Core/VideoCommon/PerformanceMetrics.h
@@ -16,22 +16,22 @@ public:
PerformanceMetrics(PerformanceMetrics&&) = delete;
PerformanceMetrics& operator=(PerformanceMetrics&&) = delete;
-public: // Count Functions
+ // Count Functions
void Reset();
void CountFrame();
void CountVBlank();
-public: // Getter Functions
+ // Getter Functions
double GetFPS() const;
double GetVPS() const;
double GetSpeed() const;
double GetLastSpeedDenominator() const;
-public: // ImGui Functions
+ // ImGui Functions
void DrawImGuiStats(const float backbuffer_scale) const;
-private: // Member Variables
+private:
PerformanceTracker m_fps_counter{"render_times.txt"};
PerformanceTracker m_vps_counter{"vblank_times.txt"};
PerformanceTracker m_speed_counter{nullptr, 6000000};
diff --git a/Source/Core/VideoCommon/PerformanceTracker.h b/Source/Core/VideoCommon/PerformanceTracker.h
index d1b6ce01ee..e253f83352 100644
--- a/Source/Core/VideoCommon/PerformanceTracker.h
+++ b/Source/Core/VideoCommon/PerformanceTracker.h
@@ -43,10 +43,11 @@ public:
PerformanceTracker(PerformanceTracker&&) = delete;
PerformanceTracker& operator=(PerformanceTracker&&) = delete;
-public: // Functions for recording and accessing information
+ // Functions for recording performance information
void Reset();
void Count();
+ // Functions for reading performance information
DT GetSampleWindow() const;
double GetHzAvg() const;
@@ -68,12 +69,10 @@ private: // Functions for managing dt queue
std::size_t inline QueueSize() const;
bool inline QueueEmpty() const;
-private: // Handle pausing and logging
+ // Handle pausing and logging
void LogRenderTimeToFile(DT val);
void SetPaused(bool paused);
-private:
- // Handle not counting time during pauses
bool m_paused = false;
int m_on_state_changed_handle;