Blender Git Loki
Git Commits -> Revision 2f8708d
Revision 2f8708d by Ton Roosendaal (master) January 29, 2006, 11:36 (GMT) |
Three-in-one commit: - Compositor now is threaded Enable it with the Scene buttons "Threads". This will handle over nodes to individual threads to be calculated. However, if nodes depend on others they have to wait. The current system only threads per entire node, not for calculating results in parts. I've reshuffled the node execution code to evaluate 'changed' events, and prepare the entire tree to become simply parsed for open jobs with a call to node = getExecutableNode() By default, even without 'thread' option active, all node execution is done within a separate thread. Also fixed issues in yesterdays commit for 'event based' calculations, it didn't do animated images, or execute (on rendering) the correct nodes when you don't have Render-Result nodes included. - Added generic Thread support in blenlib/ module The renderer and the node system now both use same code for controlling the threads. This has been moved to a new C file in blenlib/intern/threads.c. Check this c file for an extensive doc and example how to use it. The current implementation for Compositing allows unlimited amount of threads. For rendering it is still tied to two threads, although it is pretty easy to extend to 4 already. People with giant amounts of cpus can poke me once for tests. :) - Bugfix in creating group nodes Group node definitions demand a clear separation of 'internal sockets' and 'external sockets'. The first are sockets being linked internally, the latter are sockets exposed as sockets for the group itself. When sockets were linked both internal and external, Blender crashed. It is solved now by removing the external link(s). |
Commit Details:
Full Hash: 2f8708da0282c6abcdd6c2301b708dadc4ddb430
SVN Revision: 6579
Parent Commit: 9ccdad0
Lines Changed: +412, -106
2 Added Paths:
/source/blender/blenlib/BLI_threads.h (+44, -0) (View)
/source/blender/blenlib/intern/threads.c (+183, -0) (View)
/source/blender/blenlib/intern/threads.c (+183, -0) (View)
7 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+149, -28) (Diff)
/source/blender/blenkernel/intern/node_composite.c (+17, -1) (Diff)
/source/blender/blenlib/intern/Makefile (+2, -0) (Diff)
/source/blender/blenlib/SConscript (+2, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -2) (Diff)
/source/blender/render/intern/source/pipeline.c (+12, -75) (Diff)
/source/blender/blenkernel/intern/node.c (+149, -28) (Diff)
/source/blender/blenkernel/intern/node_composite.c (+17, -1) (Diff)
/source/blender/blenlib/intern/Makefile (+2, -0) (Diff)
/source/blender/blenlib/SConscript (+2, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -2) (Diff)
/source/blender/render/intern/source/pipeline.c (+12, -75) (Diff)