| 215 | } |
| 216 | |
| 217 | uint32_t PerfCounters::getUnpausedFps() { |
| 218 | uint32_t seconds = recent_ticks.sum_ms / 1000; |
| 219 | if (seconds == 0) |
| 220 | return 0; |
| 221 | size_t num_frames = recent_ticks.full ? RECENT_TICKS_HISTORY_SIZE : recent_ticks.head_idx; |
| 222 | return num_frames / seconds; |
| 223 | } |
| 224 | |
| 225 | struct CommandDepthCounter |
| 226 | { |
no outgoing calls
no test coverage detected