removed some frame-limit code which is no longer needed to do proper frame rate limiting

This commit is contained in:
gecko_reverse 2008-09-20 22:20:30 +00:00
parent 73f5bdbcce
commit 7999b55a70
1 changed files with 14 additions and 23 deletions

View File

@ -1286,8 +1286,6 @@ bool opengl_init()
else else
{ {
if(frame_skip < 0) if(frame_skip < 0)
{ //automatic { //automatic
@ -1304,12 +1302,7 @@ bool opengl_init()
} }
//update the screen (and limit frame rate of video output) //update the screen
static long long last_video_update = 0;
if(frame_end_time - last_video_update > 10000)
{
last_video_update = frame_end_time;
ScreenState *new_screen_data = [[ScreenState alloc] initWithColorData:GPU_screen]; ScreenState *new_screen_data = [[ScreenState alloc] initWithColorData:GPU_screen];
if(timer_based) if(timer_based)
@ -1328,8 +1321,6 @@ bool opengl_init()
} }
} }
}
//execute is set to false sometimes by the emulation core //execute is set to false sometimes by the emulation core
//when there is an error, if this happens notify the other thread that emulation has stopped. //when there is an error, if this happens notify the other thread that emulation has stopped.
if(!execute) if(!execute)