[Fix] FPS limiting.
This commit is contained in:
parent
7f2119e705
commit
c58e73ade2
@ -334,7 +334,7 @@ static void fps_control(void) {
|
||||
/* If the fps is limited.. */
|
||||
if((max_fps != 0) && (cur_dt < 1./max_fps)) {
|
||||
delay = 1./max_fps - cur_dt;
|
||||
SDL_Delay(delay);
|
||||
SDL_Delay((unsigned int)(delay*1000));
|
||||
fps_dt += delay; /* Make sure it displays the propper FPS. */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user