MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / Clear

Method Clear

pcsx2/PerformanceMetrics.cpp:78–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76static u64 s_accumulated_gpu_ps_invocations = 0;
77
78void PerformanceMetrics::Clear()
79{
80 Reset();
81
82 s_fps = 0.0f;
83 s_internal_fps = 0.0f;
84 s_minimum_frame_time = 0.0f;
85 s_average_frame_time = 0.0f;
86 s_maximum_frame_time = 0.0f;
87 s_internal_fps_method = PerformanceMetrics::InternalFPSMethod::None;
88
89 s_cpu_thread_usage = 0.0f;
90 s_cpu_thread_time = 0.0f;
91 s_gs_thread_usage = 0.0f;
92 s_gs_thread_time = 0.0f;
93 s_vu_thread_usage = 0.0f;
94 s_vu_thread_time = 0.0f;
95 s_capture_thread_usage = 0.0f;
96 s_capture_thread_time = 0.0f;
97
98 s_average_gpu_time = 0.0f;
99 s_gpu_usage = 0.0f;
100
101 s_frame_number = 0;
102
103 s_frame_time_history.fill(0.0f);
104 s_frame_time_history_pos = 0;
105}
106
107void PerformanceMetrics::Reset()
108{

Callers

nothing calls this directly

Calls 2

ResetFunction · 0.85
fillMethod · 0.45

Tested by

no test coverage detected