Blender Git Commit Log

Git Commits -> Revision e0f2f07

Revision e0f2f07 by Jeroen Bakker (master)
June 18, 2021, 14:10 (GMT)
DrawManager: Multithreaded counting of material buckets.

When having multiple materials in a mesh the triangles are sorted based
on material index. This sorting is done single threaded, but needs two
loops over the data. One to count the bucket size and the second one to
add the triangles to the right position in the buckets.

This patch will do the counting in a multithreaded approach that would
speed up the cache creation. It has been measured that this part is the
most blocking part of the cache creation.

Reviewed By: mano-wii

Differential Revision: https://developer.blender.org/D11615

Commit Details:

Full Hash: e0f2f07d1e8bff3410edddc235b9c4d61f62c18f
Parent Commit: 6d73d98
Lines Changed: +83, -20

3 Modified Paths:

/source/blender/draw/intern/draw_cache_extract_mesh.cc (+2, -4) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_private.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_render_data.c (+79, -16) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021