diff options
| author | 2017-02-26 17:13:12 -0800 | |
|---|---|---|
| committer | 2017-02-26 17:22:04 -0800 | |
| commit | 174464a87f2e1709597bc1e0cb08c877487a771b (patch) | |
| tree | 28cc23a81983f85040744512648291acc9e0f5af /src/core/perf_stats.h | |
| parent | Qt: Tweak status bar styling (diff) | |
| download | yuzu-174464a87f2e1709597bc1e0cb08c877487a771b.tar.gz yuzu-174464a87f2e1709597bc1e0cb08c877487a771b.tar.xz yuzu-174464a87f2e1709597bc1e0cb08c877487a771b.zip | |
PerfStats: Re-order and document members better
Diffstat (limited to 'src/core/perf_stats.h')
| -rw-r--r-- | src/core/perf_stats.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/core/perf_stats.h b/src/core/perf_stats.h index b03adab68..362b205c8 100644 --- a/src/core/perf_stats.h +++ b/src/core/perf_stats.h | |||
| @@ -44,15 +44,24 @@ public: | |||
| 44 | private: | 44 | private: |
| 45 | std::mutex object_mutex; | 45 | std::mutex object_mutex; |
| 46 | 46 | ||
| 47 | /// Point when the cumulative counters were reset | ||
| 47 | Clock::time_point reset_point = Clock::now(); | 48 | Clock::time_point reset_point = Clock::now(); |
| 49 | /// System time when the cumulative counters were reset | ||
| 50 | u64 reset_point_system_us = 0; | ||
| 48 | 51 | ||
| 49 | Clock::time_point frame_begin = reset_point; | 52 | /// Cumulative duration (excluding v-sync/frame-limiting) of frames since last reset |
| 50 | Clock::time_point previous_frame_end = reset_point; | ||
| 51 | Clock::duration accumulated_frametime = Clock::duration::zero(); | 53 | Clock::duration accumulated_frametime = Clock::duration::zero(); |
| 52 | Clock::duration previous_frame_length = Clock::duration::zero(); | 54 | /// Cumulative number of system frames (LCD VBlanks) presented since last reset |
| 53 | u64 reset_point_system_us = 0; | ||
| 54 | u32 system_frames = 0; | 55 | u32 system_frames = 0; |
| 56 | /// Cumulative number of game frames (GSP frame submissions) since last reset | ||
| 55 | u32 game_frames = 0; | 57 | u32 game_frames = 0; |
| 58 | |||
| 59 | /// Point when the previous system frame ended | ||
| 60 | Clock::time_point previous_frame_end = reset_point; | ||
| 61 | /// Point when the current system frame began | ||
| 62 | Clock::time_point frame_begin = reset_point; | ||
| 63 | /// Total visible duration (including frame-limiting, etc.) of the previous system frame | ||
| 64 | Clock::duration previous_frame_length = Clock::duration::zero(); | ||
| 56 | }; | 65 | }; |
| 57 | 66 | ||
| 58 | class FrameLimiter { | 67 | class FrameLimiter { |