[Bf-committers] Parallel Blender

Benjamin Tolputt btolputt at internode.on.net
Tue May 11 00:06:02 CEST 2010


André Susano Pinto wrote:
> And btw whats the problem with python?
> And is there any compiled list of what needs to be improved and what current
> problems block it from being parallelized?
>   

Python has a Global Interpreter Lock (the infamous GIL) that prevents
mutlitple threads from running Python bytecode at the same time in the
same executable. You can run multiple executables (processes) with
Python interpreting byte-code at the same time without problem, just not
multiple simultaneous Python *threads* in the same executable.

This really only affects the Python byte-code interpretation so,
provided a majority of the execution is in native code outside the
Python interpreter - this is not a big problem. However, for rigs
needing to call drivers hundreds of times a second (or similar
constraints) - this threading issue will become noticeable.


More information about the Bf-committers mailing list