Blender Git Commit Log

Git Commits -> Revision 0eb9351

Revision 0eb9351 by Germano Cavalcante (master)
June 11, 2021, 13:49 (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: 0eb9351296dbed5e7ac10ca56132d5e51e5f388d
Parent Commit: 2330cec
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