Blender Git Commit Log

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

3 Modified Paths:

/source/blender/draw/intern/draw_instance_data.c (+74, -65) (Diff)
/source/blender/gpu/GPU_batch.h (+0, -7) (Diff)
/source/blender/gpu/intern/gpu_batch.cc (+0, -13) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021