From: havoc Date: Thu, 29 Aug 2002 12:44:34 +0000 (+0000) Subject: speed gain in lightmap updates X-Git-Tag: RELEASE_0_2_0_RC1~296 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecca6bc1f70814b3b3fc5a00d216a0d4d5b51f0c;p=xonotic%2Fdarkplaces.git speed gain in lightmap updates git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2308 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index c4ececd6..86502d13 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1929,9 +1929,8 @@ void R_SurfMarkLights (entity_render_t *ent) if (!r_vertexsurfaces.integer) { - for (i = 0;i < ent->model->nummodelsurfaces;i++) + for (i = 0, surf = ent->model->surfaces + ent->model->firstmodelsurface;i < ent->model->nummodelsurfaces;i++, surf++) { - surf = ent->model->modelsortedsurfaces[i]; if (surf->visframe == r_framecount && surf->lightmaptexture != NULL) { if (surf->cached_dlight