diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-29 14:36:33 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-29 14:36:33 +0300 |
commit | 2f8708da0282c6abcdd6c2301b708dadc4ddb430 (patch) | |
tree | 069b1e741e6ddc7a6a566163f5378ddbf76684d6 /source/blender/blenlib/intern/Makefile | |
parent | 9ccdad0d13bacba1d0c6995efe23bc77b7866050 (diff) |
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).
Diffstat (limited to 'source/blender/blenlib/intern/Makefile')
-rw-r--r-- | source/blender/blenlib/intern/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/Makefile b/source/blender/blenlib/intern/Makefile index b6e827518bd..c0db58cdb24 100644 --- a/source/blender/blenlib/intern/Makefile +++ b/source/blender/blenlib/intern/Makefile @@ -56,6 +56,8 @@ CPPFLAGS += -I$(SRCHOME)/blender/blenkernel CPPFLAGS += -I../../include/ # path to zlib CPPFLAGS += -I$(NAN_ZLIB)/include +# path to sdl for threads +CPPFLAGS += $(NAN_SDLCFLAGS) ifeq ($(WITH_FREETYPE2), true) CPPFLAGS += -DWITH_FREETYPE2 |