mirror of
https://github.com/libretro/Mu.git
synced 2026-09-22 22:56:12 +00:00
Nitpicks and tiny speed inprovement
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "debugviewer.h"
|
||||
#include "statemanager.h"
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent) :
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user