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

@ -49,6 +49,16 @@ typedef struct
vec3_t position;
} mvertex_t;
typedef struct
{
int position[3];
} mvertex_fxp_t;
typedef struct
{
vec3_FPM_t position;
} mvertex_FPM_t;
#define SIDE_FRONT 0
#define SIDE_BACK 1
#define SIDE_ON 2
@ -331,6 +341,10 @@ typedef struct model_s
int numvertexes;
mvertex_t *vertexes;
#ifdef USE_PQ_OPT2
mvertex_fxp_t *vertexes_fxp;
#endif
int numedges;
medge_t *edges;