From ee70dad305a94709c877e776d723aee64d023cb5 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 9 Aug 2019 20:08:10 -0400 Subject: quake: merge some fixed-point optimizations from PocketQuake The PocketQuake project, available below, has some nice fixed-point code: https://web.archive.org/web/20150412233306/http://quake.pocketmatrix.com/PocketQuake0062_src.zip I'd like to see most of them merged into our Quake port. This commit gives +0.9FPS on ipod6g. (A big change given that it was running at only 9.7FPS to begin with!) Change-Id: I91931bdd5c22f14fb28616de938a03b4e7d7b076 --- apps/plugins/sdl/progs/quake/quakedef.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps/plugins/sdl/progs/quake/quakedef.h') diff --git a/apps/plugins/sdl/progs/quake/quakedef.h b/apps/plugins/sdl/progs/quake/quakedef.h index b16d9b72f3..8328154c0b 100644 --- a/apps/plugins/sdl/progs/quake/quakedef.h +++ b/apps/plugins/sdl/progs/quake/quakedef.h @@ -25,6 +25,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include +#define FIXEDPOINT_OPT // FW: enable fixed-point optimizations + +/* Fixed-point optimizations, thanks to Pocket Quake and Dan East. */ +#ifdef FIXEDPOINT_OPT +#define USE_PQ_OPT +#define USE_PQ_OPT1 +//#define USE_PQ_OPT2 +//#define USE_PQ_OPT3 // don't use +#define USE_PQ_OPT4 +//#define USE_PQ_OPT5 +#endif + #define QUAKE_GAME // as opposed to utilities #undef VERSION -- cgit v1.2.3