x


Maya animations are killing my framerate

I have a scene with only a cube as floor and 3 cube enemies. now I've made a testing model in maya with some animations. Whenever I run my game without animations I have 60 FPS, then the moment an animation starts it drops to 12 fps. If i add another maya model with any animation it drops to 3 FPS.

I noticed unity imports animations at 30 FPS and my Maya was set to "Film (24FPS)" in preferences. Also my model is just some spheres and cubes that I parented to the bones (instead of binding skin). Could any of this cause the problem?

First I exported my maya files as FBX and exported every animation separately with baking done in Maya. Then I tried importing the complete .mb file in unity and select bake animations in unity and split animations there. Both ways my FPS drops when running any animation.

In script I use animation.CrossFade("run"); and it is called inside the update function... but I don't think that's causing the problem cause when I set the model with automatically play idle animation, the FPS is also dropping before even running any animation triggering in the script.

Any ideas what might be causing the problem?

I'm kinda new to unity and especially the 3D modeling/animating part so any help would be greatly appreciated!

more ▼

asked Nov 24 '11 at 09:38 PM

geerincks gravatar image

geerincks
46 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort oldest

How many tris and how many children objects there are in the hierarchy? I have had the same problem when lots (More than 200) children mesh are attached as sons of a single object with animation.

more ▼

answered Mar 05 '12 at 04:14 AM

Windgate gravatar image

Windgate
16

(comments are locked)
10|3000 characters needed characters left

I have tested it too, without animation, the maya model in the unity perform well, but with the animation, FPS drops down nearly a half! How to optimize it, any answer will be appreciated!

more ▼

answered Apr 11 '12 at 03:11 PM

Yanger_xy gravatar image

Yanger_xy
270 22 25 33

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3795
x1175
x662
x400
x177

asked: Nov 24 '11 at 09:38 PM

Seen: 1421 times

Last Updated: Apr 11 '12 at 03:11 PM