Sculpt: Improve Expand performance #120125

Closed
Raul Fernandez Hernandez wants to merge 181 commits from farsthary/blender:improve-expand-perf into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 697d9f3534 - Show all commits

View File

@ -106,13 +106,13 @@ class VertBuf {
size_t size_alloc_get() const
{
BLI_assert(format.packed);
return size_t(vertex_alloc) * format.stride;
return vertex_alloc * format.stride;
}
/* Size of the data uploaded to the GPU. */
size_t size_used_get() const
{
BLI_assert(format.packed);
return size_t(vertex_len) * format.stride;
return vertex_len * format.stride;
}
void reference_add()