From d1d0c81af89dc0d54e9d16a64af4a0597b4be90a Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sun, 30 Dec 2012 00:20:45 -0500 Subject: 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. --- source/gfx.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/gfx.h') 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 -- cgit v1.2.3