On Mon, May 21, 2018, 9:17 AM Justin Israel <[email protected]> wrote:

>
>
> On Mon, May 21, 2018, 4:16 AM Fuzes Marcell <[email protected]>
> wrote:
>
>> Hi,
>>
>> The reason why Python nodes are going to slow down your rig is because
>> they are "untrusted".
>> Meaning no other nodes will be evaluated while an instance of this node
>> is evaluated.
>> So even if your Python code is well optimized it will slow down
>> significantly your rig because every node has to wait for the Python node
>> to evaluate before they can compute again.
>> This is happening because of the Global Interpeter Lock.
>>
>
> Is that really the case for all nodes or just for nodes implemented in
> Python? If it really is because of the GIL then I would think C++ nodes
> could continue to evaluate in Parallel.
>

I just saw the definition in the Parallel doc about untrusted nodes. I will
have to spend more time reading through this to understand why Python nodes
are untrusted.


>
>> You can read more about this in the Using Parallel Maya
>> http://download.autodesk.com/us/company/files/2017/UsingParallelMaya.pdf
>>
>> Cheers
>>
>> Füzes Marcell
>> GER: +49 157 777 231 10 <+49%201577%207723110>
>> HUN: +36 30 960 4722 <+36%2030%20960%204722>
>> [email protected]
>> fuzesmarcell.com
>>
>> On 20 May 2018 at 18:08, Daniele Dolci <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> THanks for the reply. I am actually not querying all the vertices but
>>> only one vertex. Also, I am not using an high res mesh to do this but I
>>> have a low res driver with very few vertices, that is why I think i am
>>> doing something wrong in my code.
>>>
>>> Cheers,
>>> Daniele
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/c2506d6f-a248-4d5e-8f26-8b3f2b814912%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/c2506d6f-a248-4d5e-8f26-8b3f2b814912%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CANC2f3QQL1dKrs86B_DG8os6ipMHkMrpXaqJ6qqHvaz2tJFYwg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CANC2f3QQL1dKrs86B_DG8os6ipMHkMrpXaqJ6qqHvaz2tJFYwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1%2BWmw-9Tmebg-nxAdn_8ucUDwuR7fTqx1YUVtrwQMwSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to