x


How to stop performance issues?

Hey, Im making a zombie survival game and the spawner is working ok, but as soon as I spawn 30+ zombies the game seriously starts loosing fps. I thought it was the navmesh agent I was using, but I turned them off and its still lagging. Any idea of why could that be caused?

more ▼

asked Apr 08 '12 at 02:21 AM

Thomas Paniagua gravatar image

Thomas Paniagua
41 15 17 19

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

1 answer: sort voted first

Unless you're doing something incredibly heavyweight, render complexity usually dwarfs script time. If your zombies have a lot of geometry or complex effects, that may slow things down.

Other possibility, check your editor console for error messages. Each error fires a stack trace, which can really slow things down.

If you have Unity Pro, you should check out the profiler.

more ▼

answered Apr 08 '12 at 02:30 AM

rutter gravatar image

rutter
5.2k 2 11

(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:

x2203
x662
x138
x7

asked: Apr 08 '12 at 02:21 AM

Seen: 436 times

Last Updated: Apr 08 '12 at 02:30 AM