aboutsummaryrefslogtreecommitdiff
path: root/source/port.h
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-27 18:02:03 -0500
committerNebuleon Fumika2012-12-27 18:02:03 -0500
commit6b36e79013d4c9273a96a9783a2bccdb516f174a (patch)
treebe9c829dbc09a855cc9799738a4ae0c19caa1986 /source/port.h
parent0f60f047f5146c76a73c8a299b4405929bf3909f (diff)
downloadsnes9x2005-6b36e79013d4c9273a96a9783a2bccdb516f174a.tar.gz
snes9x2005-6b36e79013d4c9273a96a9783a2bccdb516f174a.tar.bz2
snes9x2005-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/port.h')
-rw-r--r--source/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/port.h b/source/port.h
index ac241b6..5b94d06 100644
--- a/source/port.h
+++ b/source/port.h
@@ -112,6 +112,10 @@
/* #define PIXEL_FORMAT RGB565 */
#define PIXEL_FORMAT BGR555
+#define FOREVER_16_BIT
+// The above is used to disable the 16-bit graphics mode checks sprinkled
+// throughout the code, if the pixel format is always 16-bit.
+
// #define GFX_MULTI_FORMAT
#if defined(TARGET_OS_MAC) && TARGET_OS_MAC