Blender Git Commit Log
Git Commits -> Revision 144fce2
Revision 144fce2 by Jeroen Bakker (soc-2021-curves) June 21, 2021, 14: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: 144fce2be9ffb84bc2e35777297ee6918ba76bae
Parent Commit: 3f90def
Committed By: Dilith Jayakody
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)
/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)