Added a frame limit to the start screen.

This will stop excessive resource usage and random speeds.
This commit is contained in:
Barra Ó Catháin 2023-03-21 21:57:28 +00:00
parent 00f00b980a
commit 51d3b66ab9
1 changed files with 7 additions and 1 deletions

View File

@ -168,7 +168,10 @@ int main(int argc, char ** argv)
if(keyboardState[SDL_SCANCODE_RETURN] == 1)
{
inputSelected = true;
}
}
// Delay enough so that we run at 30 frames in the menu:
SDL_Delay(1000 / 30);
}
}
else
@ -247,6 +250,9 @@ int main(int argc, char ** argv)
{
inputSelected = true;
}
// Delay enough so that we run at 30 frames in the menu:
SDL_Delay(1000 / 30);
}
// Load joystick