Blender Git Commit Log

Git Commits -> Revision 03acdb4

November 11, 2019, 17:05 (GMT)
Fluid Particles: fix threading crash with viscoelastic springs.

As correctly pointed out by a comment in the code, adding
new springs wasn't thread safe, and caused crashes.

Fix by buffering new springs in intermediate thread-local
arrays, which are flushed on the main thread. This is valid
because the new springs are not used until the next sim step.

Differential Revision:

Commit Details:

Full Hash: 03acdb4cb01dcddf837fdb6a5903f23cb1c8fb83
Parent Commit: 0b96947
Committed By: Germano Cavalcante
Lines Changed: +41, -2

3 Modified Paths:

/source/blender/blenkernel/BKE_particle.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+27, -2) (Diff)
/source/blender/blenlib/BLI_buffer.h (+10, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021