Blender Git Loki

Git Commits -> Revision 97ae0f2

Revision 97ae0f2 by Sergey Sharybin (master)
April 13, 2015, 09:41 (GMT)
Depsgraph debug: Remove hardcoded array of BLENDER_MAX_THREADS elements

Allocate statistics array dynamically, so increasing max number of threads does
not increase sloppyness of the memory usage.

For the further cleanups: we can try alloca-ing this array, but it's also not
really safe because we can have quite huge number of threads in the future.
Plus statistics will allocate memory for each individual entry, so using alloca
is not going to give anything beneficial here.

Commit Details:

Full Hash: 97ae0f22cd5709e4a1af532d594012426c2b364e
Parent Commit: 890e533
Lines Changed: +23, -5

3 Modified Paths:

/source/blender/blenkernel/intern/scene.c (+10, -5) (Diff)
/source/blender/blenlib/BLI_task.h (+3, -0) (Diff)
/source/blender/blenlib/intern/task.c (+10, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021