Blender Git Loki
Git Commits -> Revision e0f5f95
Revision e0f5f95 by Clément Foucault (master) August 13, 2020, 12:20 (GMT) |
DRW: InstanceData: Remove hacks of batch freeing callback We instead use a handle reference counter on the GPUVertBufs used by the instancing batches. This make sure that if an update happens on the GPUVertBuf used to contruct the batch, they will never have the same memory address than the previously allocated ones (since they are still pending deletion thanks to the refcounter). This avoid the linear search to update the GPUBatch in the case a batch is deleted (which was even a bad option since they could be only cleared) |
Commit Details:
Full Hash: e0f5f95e66999765df05ddf0e4b5452a34875cf6
Parent Commit: 157f2a2
Lines Changed: +74, -85