Blender Git Loki

Git Commits -> Revision 2089ac3

Revision 2089ac3 by Willian Padovani Germano (master)
February 26, 2008, 17:23 (GMT)
== BPython ==

Another experiment to support threading properly. By default the Python Interpreter releases its lock every 100 instructions so that other threads get a chance to run Python code and API calls. But that is not enough to prevent race conditions causing artifacts (and maybe crashes) during threaded rendering, since all threads will access the same pynodes data.

So I'm disabling this automatic releasing of the lock (the GIL) by the interpreter, which seems to be a better option for how Blender uses Python.

Commit Details:

Full Hash: 2089ac309196f4fd024ea2a9a8793fbb6f4a36a2
SVN Revision: 13877
Parent Commit: 9952627
Lines Changed: +7, -1

1 Modified Path:

/source/blender/python/BPY_interface.c (+7, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021