MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / UpdateFrameTiming

Function UpdateFrameTiming

include/Controller.hpp:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 // ==========================================================
231
232 inline void UpdateFrameTiming()
233 {
234 LARGE_INTEGER currentTime;
235 QueryPerformanceCounter(&currentTime);
236
237 s_frameTiming.deltaTime = static_cast<float>(currentTime.QuadPart - s_frameTiming.lastFrameTime.QuadPart) / static_cast<float>(s_frameTiming.frequency.QuadPart);
238
239 s_frameTiming.deltaTime = std::clamp(s_frameTiming.deltaTime, 0.0001f, 0.1f);
240 s_frameTiming.lastFrameTime = currentTime;
241 }
242
243 // ==========================================================
244 // Controller Database

Callers 1

PollControllerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected