Page MenuHome

BMesh: use threading to count total selection.
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Jun 16 2021, 1:24 PM.

Details

Summary

During selections the total selection is refreshed at the end. This
process was done single threaded. This patch will do a parallel iter
approach.

Master: 0.043612s Threaded 0.017964s.

Master:


This patch:

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Jun 16 2021, 1:24 PM
Jeroen Bakker (jbakker) created this revision.

For BMesh we have BM_iter_parallel which works even with elem_table_dirty dirty.
I wonder if it could be used here (and what would be the impact on performance compared to BLI_task_parallel_range).

Jeroen Bakker (jbakker) planned changes to this revision.Jun 16 2021, 5:13 PM

Use BM_iter_parallel.
Start counting from 0.

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Jun 18 2021, 8:50 AM
Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Jun 18 2021, 9:26 AM
This revision is now accepted and ready to land.Jun 18 2021, 2:22 PM