start using gametime

This commit is contained in:
2025-02-18 20:03:13 +01:00
parent 14af4d7e80
commit c0f1678142
3 changed files with 9 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ static inline void gametime_update(gametime* gt) {
gt->ts = ts;
}
// gets how many times the
// gets how many times the game updates per second
static inline float gametime_get_ups(gametime* gt) {
return 1.0F / gt->deltatime;
}