MCPcopy Create free account
hub / github.com/DFHack/dfhack / getUnpausedFps

Method getUnpausedFps

library/Core.cpp:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217uint32_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
225struct CommandDepthCounter
226{

Callers 2

getUnpausedFpsFunction · 0.80
do_cycleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected