Custom transform slow down the frame rate

26 views
Skip to first unread message

Rémi Deletrain

unread,
Sep 19, 2019, 6:48:35 AM9/19/19
to Python Programming for Autodesk Maya
Hi everyone,

I make a custom transform in python.
In  my scene I have 111 of it. Before that my scene turn to 50Fps and now she turn to 16 Fps.
I take the api documentation file for create my custom transform.

This loss of frame rate is from python code ?
For use parallel evaluation I need to add code ?

Marcus Ottosson

unread,
Sep 19, 2019, 7:28:16 AM9/19/19
to python_in...@googlegroups.com
Yep, sounds about right.

For things to run faster, you can either do no drawing, do less complex drawing, have less nodes to draw or implement it using C++. I've banged my head on this a few times as well, and I wish there was a better answer. :(

With regards to parallel evaluation; that doesn't apply here because (1) drawing always happens in the main thread and (2) Python nodes cannot be parallelised. In fact, if you include a Python DG node somewhere in a dependency graph, Maya will kindly go ahead and disable parallel evaluation for that branch.

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/eec106c5-085a-436d-8181-4cfc2c8c180b%40googlegroups.com.

Rémi Deletrain

unread,
Sep 20, 2019, 9:42:10 AM9/20/19
to Python Programming for Autodesk Maya
Thank you for your reply Marcus,

I converted my nodes into cpp and I found the same frame rate as with classic transform.
I do not thinked about the fact that parallelism was not possible in python ...

Thank you very much
Reply all
Reply to author
Forward
0 new messages