blender/source
Bastien Montagne a4a968fd99 Dynapaint: parallelize drip effect.
Was not so far, because this effect is not modifying its 'own' PaintPoint, which means
it's not threadsafe. Since a global lock (mutex or spinlock) would not be much efficient
(we need to lock a given point pretty much all the computaion cycle), and since locking
a same PaintPOint from different threads at the same time is *very* unlikely,
solution here is to use an 'array of locks', one for each PaintPoint (same thing as BLI_bitmap,
using atomic ops to set/clear bits).

Here in own test (complex dynapaint over a huge sphere combining all dynapaint types), it gives
20% speedup of the whole dynapaint simulation!

Note: maybe we'd want to move that kind of bitlock into BLI lib some day - not totally sure how,
so let's keep it local for now...
2016-05-19 14:44:37 +02:00
..
blender Dynapaint: parallelize drip effect. 2016-05-19 14:44:37 +02:00
blenderplayer Transform/Snap: EditMesh/BKE_bvhutils API improvements 2016-05-06 05:01:51 +10:00
creator Cleanup: cmake, indentation, line length 2016-05-18 11:58:08 +10:00
gameengine Fix missing piece in recent rBce65fae8f32c (support for '+' key). 2016-05-12 08:15:59 +02:00
CMakeLists.txt Move tests into tests/ top-level dir 2014-06-18 22:03:46 +10:00