From 36baf4c1222aee409bb62be9770798bfa7fdd302 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 21 Jun 2022 12:36:22 +0300 Subject: Removed autoset fps. --- src/state.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 5129748..c87d064 100644 --- a/src/state.c +++ b/src/state.c @@ -15,7 +15,6 @@ bool stateInit( const char *exePath ) { state->run = true; state->resolution = (Vector2){ 1024, 720 }; state->luaState = NULL; - state->targetFPS = 60; state->textureSource = TEXTURE_SOURCE_TEXTURE; /* Images. */ state->imageAlloc = ALLOC_PAGE_SIZE; @@ -106,13 +105,11 @@ bool stateInit( const char *exePath ) { state->hasWindow = false; state->run = false; } - else { - SetTargetFPS( state->targetFPS ); + if ( state->run ) { + InitAudioDevice(); + state->run = luaInit(); } - InitAudioDevice(); - state->run = luaInit(); - return state->run; } -- cgit v1.2.3