]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
gl_textures: Optimize the gl_nopartialtextureupdates 0 path to accumulate partial...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Nov 2020 20:01:59 +0000 (20:01 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Nov 2020 20:01:59 +0000 (20:01 +0000)
commite775691c81f0bcb3b4f85bdfb771e1a4ebbc6b30
treeb3ac0513b8d3fbe45e1fa50b637f664ec7afafa3
parentf51adc262a478e81da15ee56b080eeb3a4dbd4c9
gl_textures: Optimize the gl_nopartialtextureupdates 0 path to accumulate partial updates for one big glTexSubImage2D call. Fixes lightmap update performance.

This can probably be optimized further by uploading the lightmaps per
model as soon as they're ready instead of waiting until a specific point
in the frame. For now, this'll do.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13042 d7cf8633-e32d-0410-b094-e92efae38249
gl_textures.c