Blender Git Commit Log

Git Commits -> Revision 6a71b2a

Revision 6a71b2a by Hans Goudey (master)
December 22, 2021, 17:04 (GMT)
Mesh: Parallelize bounding box calculation (WIP)

This replaces the single-threaded calculation of mesh min and max
positions with a `parallel_reduce` loop. Since the bounding box
of a mesh is retrieved quite often (at the end of each evaluation,
currently 2(?!) times when leaving edit mode, etc.), this makes for a
quite noticeable speedup actually.

On my Ryzen 3700x and a 4.2 million vertex mesh, I observed
a 4.4x performance increase, from 14 ms to 4.4 ms.

I added some methods to `float3` so they would be inlined, but
they're also a nice addition, since they're used often anyway.

Differential Revision:

Commit Details:

Full Hash: 6a71b2af66cf10556b21361cc609d54e45be5e3b
Parent Commit: 3579a9e
Lines Changed: +46, -5

2 Modified Paths:

/source/blender/blenkernel/intern/ (+30, -5) (Diff)
/source/blender/blenlib/BLI_float3.hh (+16, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021