]> git.xonotic.org Git - xonotic/darkplaces.git/commit - gl_backend.c
reduced memory usage by around 20MB (no longer allocates interleaved
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Jan 2011 18:37:35 +0000 (18:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Jan 2011 18:37:35 +0000 (18:37 +0000)
commitfc3e16ee6c45ac0e550735eb1955b4f578b9c0ca
treea7f68e4f3af42714eb2776ebd40ebf8c40d0bae0
parentb31882ee8ec3626bef4a572d279a0b44faceb308
reduced memory usage by around 20MB (no longer allocates interleaved
vertex arrays unless running D3D renderpath, now uses R_FrameData_Alloc
a lot more to avoid large static arrays)
R_FrameData system now never fails an alloc request (resizing as
needed), and has a mark system allowing space to be relinquished after
brief uses such as batch buffers
removed r_vertexposition_t as it was redundant (just use vertex3f)
gl_mesh_separatearrays cvar removed (vid.useinterleavedarrays is now used instead)
audited RSurf_PrepareVertices calls to make sure BATCHNEED_NOGAPS is
properly used

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10711 d7cf8633-e32d-0410-b094-e92efae38249
13 files changed:
cl_screen.c
client.h
gl_backend.c
gl_backend.h
gl_rmain.c
gl_rsurf.c
model_shared.c
model_shared.h
r_shadow.c
render.h
vid.h
vid_shared.c
vid_wgl.c