From f5bb7fddecc0066a6cfb580538f297cec1def5d8 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 9 Aug 2019 20:31:24 -0400 Subject: 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 --- apps/plugins/sdl/progs/quake/r_main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/plugins/sdl/progs/quake/r_main.c') 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; int numbtofpolys; btofpoly_t *pbtofpolys; mvertex_t *r_pcurrentvertbase; +#ifdef USE_PQ_OPT2 +mvertex_fxp_t *r_pcurrentvertbase_fxp; +#endif int c_surf; int r_maxsurfsseen, r_maxedgesseen, r_cnumsurfs; @@ -808,6 +811,10 @@ void R_DrawBEntitiesOnList (void) VectorCopy (modelorg, r_worldmodelorg); r_pcurrentvertbase = clmodel->vertexes; + +#ifdef USE_PQ_OPT2 + r_pcurrentvertbase_fxp = clmodel->vertexes_fxp; +#endif // FIXME: stop transforming twice R_RotateBmodel (); -- cgit v1.2.3