Blender Git Loki

Git Commits -> Revision 6b97c36

Revision 6b97c36 by Lukas Toenne (object_nodes, strand_nodes)
December 14, 2015, 07:16 (GMT)
Generalization of function caching to avoid unnecessary recompilation.

The function cache allows callers to store functions in a cache (hash table).
The functions also have a reference count, so replacing the function
in the cache (when the node tree changes) does not immediately delete
the current instance. This allows background threads to keep using the
old function until they can cleanly return (tasks should be restarted
when the nodes become outdated, but this is up to the caller system).

Commit Details:

Full Hash: 6b97c36df3d9a61c7c265e11cb8f2d16e6d248d9
Parent Commit: e6bf664
Lines Changed: +194, -69

8 Modified Paths:

/source/blender/blenkernel/intern/depsgraph.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/texture.c (+1, -1) (Diff)
/source/blender/blenvm/bvm/bvm_function.cc (+28, -1) (Diff)
/source/blender/blenvm/bvm/bvm_function.h (+10, -1) (Diff)
/source/blender/blenvm/BVM_api.h (+9, -6) (Diff)
/source/blender/blenvm/intern/bvm_api.cc (+112, -57) (Diff)
/source/blender/blenvm/util/bvm_util_thread.h (+27, -0) (Diff)
/source/blender/render/intern/source/render_texture.c (+6, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021