Blender Git Loki
Git Commits -> Revision f5d0d31
Revision f5d0d31 by Germano Cavalcante (override-recursive-resync) June 14, 2021, 14:34 (GMT) |
Refactor: use 'BLI_task_parallel_range' in Draw Cache One drawback to trying to predict the number of threads that will be used in the `task_graph` is that we are only sure of the number when the threads are running. Using `BLI_task_parallel_range` allows the driver to choose the best thread distribution through `parallel_reduce`. The benefit is most evident on hardware with fewer cores. This is the result on an 4-core laptop: ||before:|after: |---|---|---| |large_mesh_editing:|Average: 5.203638 FPS|Average: 5.398925 FPS ||rdata 15ms iter 43ms (frame 193ms)|rdata 14ms iter 36ms (frame 187ms) Differential Revision: https://developer.blender.org/D11558 |
Commit Details:
Full Hash: f5d0d3134abd6191b0355ba8a1b721cd47dd96ad
Parent Commit: dfc695e
Committed By: Bastien Montagne
Lines Changed: +32, -35
9 Modified Paths:
/source/blender/draw/intern/draw_cache_extract_mesh.cc (+13, -13) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_private.h (+2, -3) (Diff)
/source/blender/draw/intern/draw_manager_profiling.c (+3, -3) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc (+4, -4) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc (+3, -3) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc (+3, -3) (Diff)
/source/blender/gpu/GPU_index_buffer.h (+1, -2) (Diff)
/source/blender/gpu/intern/gpu_index_buffer.cc (+1, -2) (Diff)
/source/blender/gpu/tests/gpu_index_buffer_test.cc (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_private.h (+2, -3) (Diff)
/source/blender/draw/intern/draw_manager_profiling.c (+3, -3) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc (+4, -4) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc (+3, -3) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc (+3, -3) (Diff)
/source/blender/gpu/GPU_index_buffer.h (+1, -2) (Diff)
/source/blender/gpu/intern/gpu_index_buffer.cc (+1, -2) (Diff)
/source/blender/gpu/tests/gpu_index_buffer_test.cc (+2, -2) (Diff)