That's the curse of callbacks, not just in Maya either; you have little to no control of what they do or how they work. That's not to say you shouldn't use them, they are both convenient and sometimes your only option.
If it is an option however, I would recommend you replace the callback with a direct call or find another way of achieving the goal fulfilled by the callback. Other than that, there's little you can do to debug callbacks as far as I know. They call on internals that aren't publicly accessible from the outside. Best you can do it toy around with the Parallel/Serial modes and see if they affect its behaviour. On Fri, 6 Dec 2019 at 13:11, casf01 <castonguayf...@gmail.com> wrote: > > Hello, > > > This isn't exactly related to python programming but I guessed I could ask > other tech ppl, maybe I could be lucky and It also involves custom maya > nodes ( compiled in c++) so I made this facial rig that works with bones > and blendshapes. It’s being driven by a few custom c++ nodes that I wrote. > So far everything is stable and efficient, in a test scene I get 120 fps in > maya 2018.5 and I’m quite happy with happy. However, for some reasons, when > I re-open scenes, I will often/always loose about 60 fps. > > When I look in the profiler what is going on, the rig is evaluation is > still as fast as before but my sendDirtyMessagesToClient node went from > roughly 300 us to 11ms. How can I find the bottleneck ? What is causing is > this node exactly ? There’s not much information about it too. Anything I > should be looking for to mitigate this ? > > -- > 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_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/ed4f5aa7-5a9d-4b93-b7c0-333e479c975c%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/ed4f5aa7-5a9d-4b93-b7c0-333e479c975c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCD0P-jfvaL55s4TH5jvR%3D6oc-rEYJUz0%2BRAvT72P9iBQ%40mail.gmail.com.