]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Changed bouncegrid to use its own buffers (Mem_Alloc) instead of R_FrameData_Alloc...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Nov 2016 21:52:57 +0000 (21:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Nov 2016 21:52:57 +0000 (21:52 +0000)
commita6bac7318a0ed4c9820c8ea4d9c138618cb8fdd8
tree1363de0ffc7dac6651d2b4712048627d764a701d
parent8e10530c0564b56ff02e689d3d6839b8fcb88553
Changed bouncegrid to use its own buffers (Mem_Alloc) instead of R_FrameData_Alloc because bouncegrid can be > 500MB per allocation which is unreasonable pressure on R_FrameData_Alloc.

Reduce memory when using r_shadow_bouncegrid_blur by ping-ponging between two buffers rather than three.

Reduce memory when using small values of r_shadow_bouncegrid_(static|dynamic)_spacing by disabling blur and instead effectively increasing r_shadow_bouncegrid_lightpathsize by 2 (the result is identical, just slower).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12299 d7cf8633-e32d-0410-b094-e92efae38249
r_shadow.c
r_shadow.h