aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.h
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-30 00:20:45 -0500
committerNebuleon Fumika2012-12-30 00:20:45 -0500
commitd1d0c81af89dc0d54e9d16a64af4a0597b4be90a (patch)
tree5b2f091f2be5c095828a5561d6303d08a169d4f9 /source/gfx.h
parente5a0c9146acff7924a9e6b2ef516eda2c5dc3593 (diff)
downloadsnes9x2005-d1d0c81af89dc0d54e9d16a64af4a0597b4be90a.tar.gz
snes9x2005-d1d0c81af89dc0d54e9d16a64af4a0597b4be90a.tar.bz2
snes9x2005-d1d0c81af89dc0d54e9d16a64af4a0597b4be90a.zip
Rendering optimisations.
tile.cpp: Optimise the common case of drawing an unclipped but possibly flipped 8x8 tile. Instead of calling WRITE_4PIXELS16 16 times, each performing setup and teardown, move the loop into DrawTile16. tile.h, tile.cpp, gfx.h, gfx.cpp: End the use of global variable GFX.ScreenColors to pass around the current frame's palette. This saves on memory stores/loads.
Diffstat (limited to 'source/gfx.h')
-rw-r--r--source/gfx.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/gfx.h b/source/gfx.h
index b145f49..d6da783 100644
--- a/source/gfx.h
+++ b/source/gfx.h
@@ -114,7 +114,6 @@ struct SGFX{
uint32 PixSize;
uint8 *S;
uint8 *DB;
- uint16 *ScreenColors;
uint32 DepthDelta;
uint8 Z1; // Depth for comparison
uint8 Z2; // Depth to save