diff options
author | Nebuleon Fumika | 2012-12-27 18:02:03 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-27 18:02:03 -0500 |
commit | 6b36e79013d4c9273a96a9783a2bccdb516f174a (patch) | |
tree | be9c829dbc09a855cc9799738a4ae0c19caa1986 /source/nds | |
parent | 0f60f047f5146c76a73c8a299b4405929bf3909f (diff) | |
download | snesemu-6b36e79013d4c9273a96a9783a2bccdb516f174a.tar.gz snesemu-6b36e79013d4c9273a96a9783a2bccdb516f174a.tar.bz2 snesemu-6b36e79013d4c9273a96a9783a2bccdb516f174a.zip |
Speed up rendering by an unknown amount.
gfx.cpp, others: Avoid always checking for Settings.SixteenBit if FOREVER_16_BIT is defined.
port.h: Define FOREVER_16_BIT below PIXEL_FORMAT.
Diffstat (limited to 'source/nds')
-rw-r--r-- | source/nds/entry.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp index 9d0f0bc..1589c21 100644 --- a/source/nds/entry.cpp +++ b/source/nds/entry.cpp @@ -384,7 +384,9 @@ void init_sfc_setting(void) Settings.ControllerOption = SNES_JOYPAD; Settings.Transparency = TRUE; +#ifndef FOREVER_16_BIT Settings.SixteenBit = TRUE; +#endif Settings.SupportHiRes = FALSE; Settings.ThreadSound = FALSE; @@ -792,6 +794,7 @@ bool8 S9xOpenSoundDevice (int mode, bool8 stereo, int buffer_size) void S9xGenerateSound () { +#if 0 int bytes_so_far = so.sixteen_bit ? (so.samples_mixed_so_far << 1) : so.samples_mixed_so_far; @@ -853,10 +856,12 @@ void S9xGenerateSound () S9xProcessSound (0); pending_signal = FALSE; } +#endif } void S9xProcessSound (unsigned int) { +#if 0 unsigned short *audiobuff; if (!Settings.APUEnabled || so.mute_sound ) @@ -957,6 +962,7 @@ void S9xProcessSound (unsigned int) } so.samples_mixed_so_far -= sample_count; +#endif } void Init_Timer (void) |