mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-19 12:25:44 +01:00
start using gametime
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user