Hey! I know that CPU usage is a poor statistic, however I would have thought that my node which does nothing except read a value would have less of an impact than a node that is doing actual computations. CPU usage when using my node jumps up to a higher usage than it does when a full production rig is animating. I'll see if I can do some profiling, maybe compare it to a blank utility node that reads the same value..
I switched over the to the outputValue ealier to test but then my node stopped updating, despite the fact the input was changing. I guess this is because the outputValue method doesn't mark the plug as clean because it doesn't perform an evaluation? However if I manually set it to clean, since the graph hasn't evaluated, that could produce incorrect results or am I misunderstanding something? I only just started programming in the API so still have a ton to learn :) Cheers, Kaine On Thursday, September 1, 2016 at 4:00:28 PM UTC+10, [email protected] wrote: > > Hi, I don't necessarily agree with the idea that an increase in cpu usage > dictates a performance increase in your node. Low cpu usage doesn't mean > your node or code is slow. cpu usage is not a very good way to gauge the > performance. Even frame rates would be better, but the profiler would be > ideal. > > are you using parallel evaluation? > > I would think the hit you're taking is not in retrieving an MMatrix, but > rather in the MItGeometry iterator being created for you. > > You also don't have to use the deform() method, and can do your > deformation within the compute. > > You're also using the inputValue, which could also cause everything > upstream to be recomputed. I think it's pretty common to use outputValue > from within the deform method. > > goodluck! > -- 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/683d883e-4852-4931-8e46-d2671fc6d3f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
