I'm working on a tower defense game and in the higher level waves there are about 50 animated enemies and they're causing a lot of lag in my game. I turned the mesh compression to high but didn't work. Do someone know anything about 3d models compression and this stuff? Thank you.
It is probably art related but it could be also script related (inefficient pathfinding, ai routines?)
Mesh compression will not reduce polycount but rather filesize.
For starters press the 'stats' button in the game window and let us know the tri count.
You mean something about the animations? There is a rigidbody movimentation on the enemies.
If you have Unity Pro (perhaps a free trial which is still active?) then you can use the profiler (Window->Profiler or CTRL+7) to pinpoint the exact code or object that takes a long time to execute / render.
I discoverIed what was causing the lag. It was my spot lighs. When I took them off the game was ok. Thank
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
10 People are following this question.
Can I make animations snap to a frame?
i am trying to animate a character model and am having issue with floating characters.
Unable to reduce keyframes / compress animations
Character Animation Lags in Multiplayer
Reduce Lag When Loading Multiple Animations