1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Franklin Wei 2019-08-09 20:08:10 -04:00
parent 3fffabf50d
commit ee70dad305
10 changed files with 866 additions and 6 deletions

View file

@ -96,6 +96,11 @@ typedef struct clipplane_s
extern clipplane_t view_clipplanes[4];
#ifdef USE_PQ_OPT2
extern clipplane_fxp_t view_clipplanes_fxp[4];
#endif
//=============================================================================
void R_RenderWorld (void);
@ -277,6 +282,10 @@ extern int r_outofsurfaces;
extern int r_outofedges;
extern mvertex_t *r_pcurrentvertbase;
extern mvertex_FPM_t *r_pcurrentvertbaseFPM;
#ifdef USE_PQ_OPT2
extern mvertex_fxp_t *r_pcurrentvertbase_fxp;
#endif
extern int r_maxvalidedgeoffset;
void R_AliasClipTriangle (mtriangle_t *ptri);