GameEngine/source/game_loop.c
2026-02-18 17:20:25 +01:00

14 lines
239 B
C

#include <engine.h>
//may be able to dispatch it
void GameLoop(const double tick_time) {
__thread static double time = 0;
time += GetFrameTime();
if (time >= tick_time) {
// interaction
// simulation
time = 0;
}
}