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:
1 parent
f85c7e37f1
commit
2947ca3b9d
2 files changed
+28
-5
No files matched your search
@@ -27,6 +27,7 @@ typedef struct {
|
||||
void* renderer;
|
||||
double delta_time;
|
||||
double total_time;
|
||||
int fps;
|
||||
uint64_t frame_count;
|
||||
} Engine;
|
||||
|
||||
|
||||
Reference in new issue
Block a user