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