Blender Git Commit Log

Git Commits -> Revision dfc4de0

Revision dfc4de0 by Sergey Sharybin (master)
October 22, 2014, 10:20 (GMT)
Meshdeform modifier: Use threaded evaluation

This commit switches meshdeform modifier to use threads to evaluate
the vertices positions using the central task scheduler.

SO now we've got an utility function to help splitting the for loop
into tasks using BLI_task module which is pretty straightforward to
use: it gets range (which is an integer lower and higher bounds) and
the function and userdata to be invoked for each of the iterations.

The only weak point for now is the passing the data to the callback,
this isn't so trivial to improve in pure C.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D838

Commit Details:

Full Hash: dfc4de036e39f74aa0a3b1e1734a02f4a9530a78
Parent Commit: 74f40a5
Lines Changed: +212, -51

3 Modified Paths:

/source/blender/blenlib/BLI_task.h (+12, -0) (Diff)
/source/blender/blenlib/intern/task.c (+112, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+88, -51) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021