mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-11 18:59:08 +01:00
fix framerate issue (issue 498)
This commit is contained in:
parent
623fe9bcac
commit
2d44e129a2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user