Blender Git Commit Log

Git Commits -> Revision 174ed69

Revision 174ed69 by Jeroen Bakker (master)
June 15, 2021, 13:31 (GMT)
DrawManager: Cache material offsets.

When using multiple materials in a single mesh the most time is spend in
counting the offsets of each material for the sorting.

This patch moves the counting of the offsets to render mesh data and
caches it as long as the geometry doesn't change.

This patch doesn't include multithreading of this code.

Reviewed By: mano-wii

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

Commit Details:

Full Hash: 174ed69c1ba8cb8ca7ac39d41922bc203f78326f
Parent Commit: 7c8b9c7
Lines Changed: +136, -47

6 Modified Paths:

/source/blender/draw/intern/draw_cache_extract.h (+8, -1) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh.cc (+10, -4) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_private.h (+7, -0) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_render_data.c (+104, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+2, -0) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc (+5, -42) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021