summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/r_main.c
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-08-09 20:31:24 -0400
committerFranklin Wei <franklin@rockbox.org>2019-08-09 21:27:55 -0400
commitf5bb7fddecc0066a6cfb580538f297cec1def5d8 (patch)
tree97d943bcf7089b274f30ad25fab591516b16637b /apps/plugins/sdl/progs/quake/r_main.c
parentee70dad305a94709c877e776d723aee64d023cb5 (diff)
downloadrockbox-f5bb7fddecc0066a6cfb580538f297cec1def5d8.tar.gz
rockbox-f5bb7fddecc0066a6cfb580538f297cec1def5d8.zip
quake: merge the remaining Pocket Quake PQ_OPT changes
I didn't do _OPT3 because it's disabled in the PQ source. This gives as +0.2FPS boost over the last commit. Change-Id: I9c3c8fb7bd23262beb810da6e9469d6b6c4b2a81
Diffstat (limited to 'apps/plugins/sdl/progs/quake/r_main.c')
-rw-r--r--apps/plugins/sdl/progs/quake/r_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/r_main.c b/apps/plugins/sdl/progs/quake/r_main.c
index 7776b46bde..4aa14d69da 100644
--- a/apps/plugins/sdl/progs/quake/r_main.c
+++ b/apps/plugins/sdl/progs/quake/r_main.c
@@ -43,6 +43,9 @@ qboolean r_dowarp, r_dowarpold, r_viewchanged;
43int numbtofpolys; 43int numbtofpolys;
44btofpoly_t *pbtofpolys; 44btofpoly_t *pbtofpolys;
45mvertex_t *r_pcurrentvertbase; 45mvertex_t *r_pcurrentvertbase;
46#ifdef USE_PQ_OPT2
47mvertex_fxp_t *r_pcurrentvertbase_fxp;
48#endif
46 49
47int c_surf; 50int c_surf;
48int r_maxsurfsseen, r_maxedgesseen, r_cnumsurfs; 51int r_maxsurfsseen, r_maxedgesseen, r_cnumsurfs;
@@ -808,6 +811,10 @@ void R_DrawBEntitiesOnList (void)
808 VectorCopy (modelorg, r_worldmodelorg); 811 VectorCopy (modelorg, r_worldmodelorg);
809 812
810 r_pcurrentvertbase = clmodel->vertexes; 813 r_pcurrentvertbase = clmodel->vertexes;
814
815#ifdef USE_PQ_OPT2
816 r_pcurrentvertbase_fxp = clmodel->vertexes_fxp;
817#endif
811 818
812 // FIXME: stop transforming twice 819 // FIXME: stop transforming twice
813 R_RotateBmodel (); 820 R_RotateBmodel ();