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

Function get_desired_timeskip

plugins/timestream.cpp:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static float get_desired_timeskip(int32_t real_fps, int32_t target_fps) {
287 // minus 1 to account for the current frame
288 return (float(target_fps) / float(real_fps)) - 1;
289}
290
291static int32_t get_next_trigger_year_tick(int32_t next_tick) {
292 int32_t next_trigger_tick = INT32_MAX;

Callers 1

do_cycleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected