Blender Git Loki

Git Commits -> Revision 1ad2ad6

June 11, 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: 1ad2ad6d70b23c7f472cc187328d6ce1eeb80692
Parent Commit: c3d2a10
Committed By: Sybren A. Stüvel
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021