Added a frame limit to the start screen.
This will stop excessive resource usage and random speeds.
This commit is contained in:
parent
00f00b980a
commit
51d3b66ab9
|
@ -169,6 +169,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);
|
||||
}
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue