Blender Git Commit Log

Git Commits -> Revision 1e1dc1f

Revision 1e1dc1f by Germano Cavalcante (soc-2021-curves)
June 21, 2021, 14:31 (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: 1e1dc1ff54a7de12f2fff438a49bd8a8173edded
Parent Commit: 141e5f1
Committed By: Dilith Jayakody
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021