feat: fixed timestep game loop + FPS counter

- 60Hz fixed timestep with accumulator
- FPS display via engine->fps
- Proper delta_time accumulation
This commit is contained in:
shuiyu1123 committed 2026-07-11 12:31:39 +08:00
1 parent f85c7e37f1
commit 2947ca3b9d
2 files changed
+28 -5

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ typedef struct {
void* renderer;
double delta_time;
double total_time;
int fps;
uint64_t frame_count;
} Engine;