PDA

View Full Version : Optimize Your Rig


asod
12-23-2004, 03:47 PM
for anyone who want to optimize or learn more about Maya this thread is for you

After finishing a rig, or a small system, I look for ways to optimize it.
So I run across a command dgtimer, if you don't know it, it's because it's not famous among Users , it's more of an R&D command. It's useful to learn what slows things down.

I've build a UI shell for this command and I use it a lot to optimze and to measure my scenes Speed, and look for the Heavy Nodes.
All you need to do is to animate the rig or scene to get optimize report

Here is the dgtimer print, you can see the time it took to compute every node in the scene.


MAYA DEPENDENCY GRAPH TIMING INFORMATION
----------------------------------------
Global DG timing is currenly: ON
Time since last global timer reset:
Total real time : 10.1249 sec
Total user time : 0 sec
Total sys time : 0 sec

Real time in dirty processing : 0.140458 sec [7328 calls]
Real time in evaluation processing : 1.48501 sec [13874 calls]
Per-node timing information:
Rank ON Self time Percent Cumulative Inclusive Count Type Name
1 Y 0.5334 35.93% 0.5334 1.2039 108 skinCluster skinCluster1
2 Y 0.4136 27.86% 0.9470 0.4732 108 groupParts groupParts36
3 Y 0.2808 18.91% 1.2278 1.4846 108 mesh legsShape
4 Y 0.1085 7.31% 1.3363 0.1454 50 joint Skin___L_Ankle_JNT
5 Y 0.0596 4.01% 1.3959 0.0596 108 mesh legsShapeOrig
6 Y 0.0459 3.09% 1.4418 0.0460 350 parentConstraint ThighArch_Grp_parentConstraint1
7 Y 0.0287 1.93% 1.4705 0.0292 50 unitConversion unitConversion1
8 Y 0.0242 1.63% 1.4947 0.0242 88 transform PLV_CTRL
9 Y 0.0233 1.57% 1.5180 0.0233 550 joint Skin___L_Calf_JNT
10 Y 0.0207 1.39% 1.5387 0.0666 100 transform ThighArch_Grp
11 Y 0.0193 1.30% 1.5579 0.0193 800 joint Skin___L_Thigh_JNT
12 Y 0.0166 1.12% 1.5746 0.0219 264 aimConstraint Arch_L_Leg_JNT1_MidA_aimConstraint1
13 Y 0.0164 1.10% 1.5910 0.0186 100 transform CalfArch_Grp
14 Y 0.0150 1.01% 1.6059 0.0161 1244 joint Arch_L_Leg_3
15 Y 0.0128 0.86% 1.6187 0.0128 1131 joint Arch_L_Leg_7
16 Y 0.0104 0.70% 1.6291 0.4841 108 tweak tweak18
17 Y 0.0101 0.68% 1.6392 0.0393 50 multiplyDivide multiplyDivide1
18 Y 0.0091 0.61% 1.6483 0.0292 1398 joint Arch_L_Leg_5
19 Y 0.0086 0.58% 1.6569 0.0484 350 joint Arch_L_Leg_1
20 Y 0.0069 0.47% 1.6638 0.0133 291 aimConstraint Arch_L_Leg_JNT2_MidA_aimConstraint1
21 Y 0.0069 0.46% 1.6707 0.0135 300 aimConstraint Arch_L_Leg_JNT1_MidB_aimConstraint1
22 Y 0.0062 0.42% 1.6770 0.0063 88 poleVectorConstraint ikHandle1_poleVectorConstraint1
23 Y 0.0060 0.41% 1.6830 0.0065 29 ikHandle ikHandle1
24 Y 0.0058 0.39% 1.6888 0.0100 224 aimConstraint Arch_L_Leg_JNT2_MidB_aimConstraint1
25 Y 0.0033 0.22% 1.6921 0.4874 108 groupParts skinCluster1GroupParts
26 Y 0.0023 0.15% 1.6944 0.0023 450 joint Arch_L_Leg_9
27 Y 0.0022 0.15% 1.6966 0.0023 350 parentConstraint CalfArch_Grp_parentConstraint1
28 Y 0.0021 0.14% 1.6987 0.0030 489 pointConstraint Arch_L_Leg_JNT2_MidA_pointConstraint1
29 Y 0.0021 0.14% 1.7008 0.0027 490 pointConstraint Arch_L_Leg_JNT1_MidB_pointConstraint1
30 Y 0.0016 0.11% 1.7025 0.0027 402 pointConstraint Arch_L_Leg_JNT1_MidA_pointConstraint1
31 Y 0.0014 0.09% 1.7038 0.0019 398 pointConstraint Arch_L_Leg_JNT2_MidB_pointConstraint1
32 Y 0.0011 0.08% 1.7049 0.0011 116 transform Leg_CTRL
33 Y 0.0011 0.07% 1.7060 0.0019 88 unitConversion unitConversion9
-----------------------------------------------------------------
812 1.6840 100.00% 1.6840 4.9328 13874

Morganism
01-01-2005, 04:47 AM
cool, dude, thanks for the tip and the script. This will be very useful.

CGTalk Moderation
01-20-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.