I suggest you do a Maya profiler and check your scene performance there. I
don't think viewport render and update is gonna make that much difference
from 0.1 seconds to 120 seconds, 1200 times faster.
Here is an example of my profiling result. Turn off viewport can only
remove the scene update and render part.
[image: image.png]


On Fri, Sep 2, 2022 at 2:49 PM Alejandro <voidrea...@gmail.com> wrote:

> Hello I want to measure how long does an animation playback takes in both
> maya UI and standalone.
>
> If I load any animation in maya and do a playback like this:
>
> for t in range(1, 100, 1):
>     cmds.currentTime(t)
>
> it takes around 2 minutes to complete in maya UI.
>
> But if I do the same with the same scene in maya standalone it takes 0.1
> seconds, why is that fast ?
>
> I tried disabling viewport in the maya UI to see if it's the viewport
> calculation  but not much difference, almost the same 2 minutes.
>
> is there any way to reproduce in standalone the same as the maya UI
> playback times ?
>
>
> --
> 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/6146405e-bbeb-41ae-8052-eec161f9e2e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/6146405e-bbeb-41ae-8052-eec161f9e2e0n%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/CAKoVHSBmt-rYMb5QXcGGKt2RRdHQtB%2BU0drN171oSDdZzXMmkw%40mail.gmail.com.

Reply via email to