3DS: Use blip_add_delta_fast for a small speed improvement

This commit is contained in:
Jeffrey Pfau 2016-02-22 21:09:05 -08:00
parent 63f14876c5
commit 3b24e94018
3 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Misc:
- SDL: Remove default gamepad mappings
- Qt: Update 360 input profile on OS X to reflect newer drivers
- Qt: Remove use of NaN
- 3DS: Use blip_add_delta_fast for a small speed improvement
0.4.0: (2016-02-02)
Features:

View File

@ -10,6 +10,10 @@
#include "gb/gb.h"
#include "gb/io.h"
#ifdef _3DS
#define blip_add_delta blip_add_delta_fast
#endif
#define FRAME_CYCLES (DMG_LR35902_FREQUENCY >> 9)
const uint32_t DMG_LR35902_FREQUENCY = 0x400000;

View File

@ -11,6 +11,10 @@
#include "gba/serialize.h"
#include "gba/video.h"
#ifdef _3DS
#define blip_add_delta blip_add_delta_fast
#endif
mLOG_DEFINE_CATEGORY(GBA_AUDIO, "GBA Audio");
const unsigned GBA_AUDIO_SAMPLES = 2048;