From 551e5277841df4e10f9286c34437a99aefd11b5b Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Fri, 13 Apr 2018 10:25:25 -0500 Subject: [PATCH] Revert "Add a wait for threads when we hand away control. Probably not needed due to all the extra processing during end-of-frame." This reverts commit e1a4ef93b69f911de57f41b58dd911869af27e89. --- apu/apu.cpp | 10 ---------- apu/apu.h | 1 - cpuexec.cpp | 3 --- 3 files changed, 14 deletions(-) diff --git a/apu/apu.cpp b/apu/apu.cpp index 8450e4fd..d5aabc89 100644 --- a/apu/apu.cpp +++ b/apu/apu.cpp @@ -758,16 +758,6 @@ static inline void S9xAPUUpdateClock (void) S9xAPUSetReferenceTime(CPU.Cycles); } -void S9xAPUWait (void) -{ -#ifdef USE_THREADS - if (spc::using_threads) - { - S9xAPUThreadWait(); - } -#endif -} - uint8 S9xAPUReadPort (int port) { #ifdef USE_THREADS diff --git a/apu/apu.h b/apu/apu.h index 144747b9..f1462a0f 100644 --- a/apu/apu.h +++ b/apu/apu.h @@ -230,6 +230,5 @@ void S9xClearSamples (void); bool8 S9xMixSamples (uint8 *, int); void S9xSetSamplesAvailableCallback (apu_callback, void *); void S9xUpdateDynamicRate (int, int); -void S9xAPUWait (void); #endif diff --git a/cpuexec.cpp b/cpuexec.cpp index 0bb4256f..c2c562da 100644 --- a/cpuexec.cpp +++ b/cpuexec.cpp @@ -319,12 +319,9 @@ void S9xMainLoop (void) #ifdef DEBUGGER if (!(CPU.Flags & FRAME_ADVANCE_FLAG)) #endif - S9xAPUWait(); S9xSyncSpeed(); CPU.Flags &= ~SCAN_KEYS_FLAG; } - - } static inline void S9xReschedule (void)