From 6dc917231f20e51a6fbbe9db781520460f80c883 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 19 Dec 2008 06:24:20 +0000 Subject: [PATCH] Win32 - more turbo fixes --- src/drivers/win/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drivers/win/main.cpp b/src/drivers/win/main.cpp index 7552d33e..f287a0fe 100644 --- a/src/drivers/win/main.cpp +++ b/src/drivers/win/main.cpp @@ -686,7 +686,7 @@ doloopy: { if (!frameSkipCounter) { - frameSkipCounter = 15; + frameSkipCounter = 18; skippy = 0; } else @@ -757,11 +757,11 @@ void win_debuggerLoop() // Update the game and gamewindow with a new frame void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count) { - win_SoundSetScale(fps_scale); - + win_SoundSetScale(fps_scale); //If turboing and mute turbo is true, bypass this + //write all the sound we generated. - if(soundo && Buffer && Count) { - win_SoundWriteData(Buffer,Count); + if(soundo && Buffer && Count && !(muteTurbo && turbo)) { + win_SoundWriteData(Buffer,Count); //If turboing and mute turbo is true, bypass this } //blit the framebuffer @@ -775,7 +775,7 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count) //MBG TODO - think about this logic //throttle - extern bool turbo; //needs to be declared better + if(!(eoptions&EO_NOTHROTTLE)) //if throttling is enabled.. if(!turbo) //and turbo is disabled.. if(!FCEUI_EmulationPaused()