Skip to content

Commit

Permalink
Remove Redundant Access Specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Belliveau committed Dec 24, 2022
1 parent 673f81c commit e1d078a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Source/Core/VideoCommon/PerformanceMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ class PerformanceMetrics
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};
Expand Down
7 changes: 3 additions & 4 deletions Source/Core/VideoCommon/PerformanceTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ class PerformanceTracker
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;
Expand All @@ -68,12 +69,10 @@ class PerformanceTracker
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;

Expand Down

0 comments on commit e1d078a

Please sign in to comment.