mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-12 03:09:07 +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 void S9xInitSync();
|
||||||
extern uint32 prevRenderedFrameCount;
|
extern uint32 prevRenderedFrameCount;
|
||||||
static int videoReset;
|
|
||||||
static int currentMode;
|
static int currentMode;
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -252,10 +251,8 @@ emulate ()
|
|||||||
FrameTimer = 0;
|
FrameTimer = 0;
|
||||||
setFrameTimerMethod (); // set frametimer method every time a ROM is loaded
|
setFrameTimerMethod (); // set frametimer method every time a ROM is loaded
|
||||||
|
|
||||||
CheckVideo = 1; // force video update
|
CheckVideo = 2; // force video update
|
||||||
prevRenderedFrameCount = IPPU.RenderedFramesCount;
|
prevRenderedFrameCount = IPPU.RenderedFramesCount;
|
||||||
|
|
||||||
videoReset = -1;
|
|
||||||
currentMode = GCSettings.render;
|
currentMode = GCSettings.render;
|
||||||
|
|
||||||
while(1) // emulation loop
|
while(1) // emulation loop
|
||||||
|
@ -722,7 +722,7 @@ update_video (int width, int height)
|
|||||||
vwidth = width;
|
vwidth = width;
|
||||||
vheight = height;
|
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!
|
return; // we haven't rendered any frames yet, so we can't draw anything!
|
||||||
|
|
||||||
// Ensure previous vb has complete
|
// Ensure previous vb has complete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user