From f2afcf58938af14c298740bd0d67bcd738d1679e Mon Sep 17 00:00:00 2001 From: mightymax Date: Sun, 28 Jan 2007 19:33:03 +0000 Subject: [PATCH] changed default to not use the LuT. Lookup tables instead of a few integer operations will nearly allways _reduce_ performance massively on x86 systems. This is because the it can simply do several (and partitial simultaneous) integer operations on registers in the time it accesses one memory cell outside the cache --- desmume/src/GPU.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index 7933908dd..128096cc3 100644 --- a/desmume/src/GPU.c +++ b/desmume/src/GPU.c @@ -1477,7 +1477,7 @@ u16 bright_less_colors[16][0x8000]; BOOL bright_init=FALSE; // comment this if want to use formulas instead -#define BRIGHT_TABLES +// #define BRIGHT_TABLES void calc_bright_colors() { int base = /*gpu->masterBright.bits.FactorEx? 63:*/ 31 ;