diff --git a/qtBuildSystem/Mu/emuwrapper.cpp b/qtBuildSystem/Mu/emuwrapper.cpp index 42d7763..74885b6 100644 --- a/qtBuildSystem/Mu/emuwrapper.cpp +++ b/qtBuildSystem/Mu/emuwrapper.cpp @@ -98,7 +98,7 @@ void EmuWrapper::emuThreadRun(){ emuPaused = true; } - std::this_thread::sleep_for(std::chrono::milliseconds(1)); + std::this_thread::sleep_for(std::chrono::milliseconds(3)); } } diff --git a/qtBuildSystem/Mu/mainwindow.cpp b/qtBuildSystem/Mu/mainwindow.cpp index 0d9437b..8648838 100644 --- a/qtBuildSystem/Mu/mainwindow.cpp +++ b/qtBuildSystem/Mu/mainwindow.cpp @@ -20,6 +20,7 @@ #include #include "debugviewer.h" +#include "statemanager.h" MainWindow::MainWindow(QWidget* parent) : diff --git a/src/audio/inductor.c b/src/audio/inductor.c index 8064593..e800a28 100644 --- a/src/audio/inductor.c +++ b/src/audio/inductor.c @@ -23,6 +23,6 @@ void inductorAddClocks(int32_t clocks, bool charge){ } void inductorSampleAudio(int32_t now){ - blip_add_delta(palmAudioResampler, now, (inductorCurrentCharge - inductorChargeAtLastSample) * AUDIO_VOLUME); + blip_add_delta_fast(palmAudioResampler, now, (inductorCurrentCharge - inductorChargeAtLastSample) * AUDIO_VOLUME); inductorChargeAtLastSample = inductorCurrentCharge; } diff --git a/src/emulator.c b/src/emulator.c index 5da5b9d..ca1c013 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -117,8 +117,9 @@ uint32_t emulatorInit(buffer_t palmRomDump, buffer_t palmBootDump, uint32_t spec palmMisc.batteryLevel = 100; //config - palmClockMultiplier = (specialFeatures & FEATURE_FAST_CPU) ? 2.0 : 1.0;//overclock + palmClockMultiplier = (specialFeatures & FEATURE_FAST_CPU) ? 2.00 : 1.00;//overclock //palmClockMultiplier *= 0.80;//run at 80% speed, 20% is likely memory waitstates + //palmClockMultiplier *= 0.50;//for slow devices palmSpecialFeatures = specialFeatures; setRtc(0, 0, 0, 0);//RTCTIME and DAYR are not cleared by reset, clear them manually in case the frontend doesnt set the RTC diff --git a/src/m68k/m68kconf.h b/src/m68k/m68kconf.h index 12f8443..e22375d 100755 --- a/src/m68k/m68kconf.h +++ b/src/m68k/m68kconf.h @@ -150,9 +150,9 @@ */ -/* If ON, the enulation core will use 64-bit integers to speed up some +/* If ON, the emulation core will use 64-bit integers to speed up some * operations. -*/ + */ #define M68K_USE_64_BIT OPT_OFF //it seems MASK_OUT_ABOVE_32 is has to be called on every 32 bit operation when using this option, //possibly even making the speed worse than with just 32 bits