fix framerate issue (issue 498)

This commit is contained in:
dborth 2010-06-01 02:18:28 +00:00
parent 623fe9bcac
commit 2d44e129a2
2 changed files with 3 additions and 6 deletions

View File

@ -211,7 +211,6 @@ void setFrameTimerMethod()
***************************************************************************/
extern void S9xInitSync();
extern uint32 prevRenderedFrameCount;
static int videoReset;
static int currentMode;
void
@ -252,10 +251,8 @@ emulate ()
FrameTimer = 0;
setFrameTimerMethod (); // set frametimer method every time a ROM is loaded
CheckVideo = 1; // force video update
CheckVideo = 2; // force video update
prevRenderedFrameCount = IPPU.RenderedFramesCount;
videoReset = -1;
currentMode = GCSettings.render;
while(1) // emulation loop

View File

@ -721,8 +721,8 @@ update_video (int width, int height)
{
vwidth = width;
vheight = height;
if(IPPU.RenderedFramesCount == prevRenderedFrameCount)
if(CheckVideo == 2 && IPPU.RenderedFramesCount == prevRenderedFrameCount)
return; // we haven't rendered any frames yet, so we can't draw anything!
// Ensure previous vb has complete