x


Is there any way to optimize Animation Sampling?

I'm trying to do a crowd simulation and I'm struggling to optimize it well. As I see in profiler, about 20% of my CPU used for 'Animation.Sample'. Is there any way to reduce the sampling accuracy to gain performance.

Thanks in advance.

more ▼

asked Jan 10 '12 at 10:40 AM

AliAzin gravatar image

AliAzin
2.5k 42 56 79

I'm having an issue with animation.sample also although mine seems to spike up to about 10ms once in a while.

Feb 10 '12 at 10:48 PM Ben Holmes

Having the same issue. Animation.Sample is taking up 20-40% in my case.

7 days ago Diet Chugg

The only way is to write your own animations system. However I trust that the Unity API is going to be faster than anything anyone can write, due to very special optimisations.

6 days ago Benproductions1
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x3807
x664
x472

asked: Jan 10 '12 at 10:40 AM

Seen: 877 times

Last Updated: 6 days ago