Nitpicks and tiny speed inprovement

This commit is contained in:
meepingsnesroms
2018-10-26 18:05:02 -07:00
parent 7f55aaf80b
commit e4832cc757
5 changed files with 7 additions and 5 deletions

View File

@@ -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));
}
}

View File

@@ -20,6 +20,7 @@
#include <stdint.h>
#include "debugviewer.h"
#include "statemanager.h"
MainWindow::MainWindow(QWidget* parent) :

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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