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

@ -110,6 +110,15 @@ extern int reinit_surfcache;
extern refdef_t r_refdef;
extern vec3_t r_origin, vpn, vright, vup;
#ifdef USE_PQ_OPT1
extern int vpn_fxp[3], vright_fxp[3], vup_fxp[3];
extern int xscale_fxp, yscale_fxp, xcenter_fxp, ycenter_fxp;
extern int r_refdef_fvrectx_adj_fxp;
extern int r_refdef_fvrectright_adj_fxp;
extern int r_refdef_fvrecty_adj_fxp;
extern int r_refdef_fvrectbottom_adj_fxp;
#endif
extern struct texture_s *r_notexture_mip;