Optimize index buffers for multires drawing in sculpt mode.
authorNicholas Bishop <nicholasbishop@gmail.com>
Fri, 9 Mar 2012 09:30:03 +0000 (09:30 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Fri, 9 Mar 2012 09:30:03 +0000 (09:30 +0000)
commit0641f1723b5a0290d4d67a52d7db66df1be79f61
tree499b1f887b7eb02519fcb8c356e1f4845971989b
parentdfdfa3d51b48a6bffd90779a1778dcf0e9a751e4
Optimize index buffers for multires drawing in sculpt mode.

All multires grids have exactly the same ordering, so rather than
allocate a new index buffer for each PBVH node, just allocate one that
can be reused for every grid.

This requires more draw calls (one per grid rather than one per PBVH
node), but less graphics memory.
source/blender/gpu/intern/gpu_buffers.c