blender/source/creator
Lukas Tönne 08444518e6 Removing ParticleSystem->frand arrays to avoid memory corruption issues
in threaded depgraph updates and effector list construction.

Gathering effectors during depgraph updates will call the
psys_check_enabled function. This in turn contained a DNA alloc call
for the psys->frand RNG arrays, which is really bad because data must be
immutable during these effector constructions.

To avoid such allocs the frand array is now global for all particle
systems. To avoid correlation of pseudo-random numbers the psys->seed
value is complemented with random offset and multiplier for the actual
float array. This is not ideal, but work sufficiently well (given that
random numbers were already really limited and show repetition quite
easily for particle counts > PSYS_FRAND_COUNT).
2014-03-07 11:20:45 +01:00
..
blender.map Attempt to fix #35228: hide a few LLVM symbols that are not in the llvm namespace 2013-05-06 09:44:56 +00:00
buildinfo.c Further tweaks to buildinfo 2013-11-15 18:05:27 +06:00
CMakeLists.txt Edit to last commit, use the version veriable 2014-03-05 06:45:29 +11:00
creator.c Removing ParticleSystem->frand arrays to avoid memory corruption issues 2014-03-07 11:20:45 +01:00
osx_locals.map OSX/scons: introducing and testing an unexported_symbols_list to prevent clashes, todo: cmake 2012-11-27 11:38:59 +00:00