x


Why is my build running so slow despite running fine in editor?

Our build is running really slow (like 3 frames per sec) but it runs absolutely fine in the Editor. We're running Unity 2.61 Free. It runs just as slow regardless of the resolution or any of the settings prior to running. Any ideas why this would happen and how we can fix it/diagnose it?

more ▼

asked Jul 14 '10 at 01:06 PM

Graeme gravatar image

Graeme
53 9 9 15

depends what the platform is, if it's iPhone then obviously your computer has far greater power than the device.

Jul 14 '10 at 01:09 PM spinaljack

I've got the same problem -- my game runs great in the editor (40-100 fps), 3 fps when I publish a web build and run it locally. Windows 7 PC, Unity Pro 3.3. (Interestingly, the web build runs fine on a Mac.)

Apr 07 '11 at 10:25 PM yoyo

Hmm, interesting -- I just used fraps to show the actual frame rate and my web player actually runs at 60 fps for a few seconds, then tanks. I suspect the process gets less memory than in the editor, and that the Mono garbage collector is killing it. More investigation required ...

Apr 07 '11 at 11:03 PM yoyo

Despite interesting cyclical memory usage patterns (I printed System.GC.GetTotalMemory to the screen as a GUI label), it turns out the problem was exceptions being generated from attempting to access the local file system, which doesn't work in a web build. I knew this wouldn't work, but didn't realize it would cripple performance in the process.

Apr 07 '11 at 11:23 PM yoyo
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

First thing I would check is the output log file (in the same place as the editor log on mac, or in the build's data folder on windows).

If you have problems that only the standalone is experiencing, most likely they'll show up there, and the logging itself will slow you down to a crawl

more ▼

answered Jul 14 '10 at 01:38 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

That seems to be the route of some of the problems but we also noticed that when we tried to organise stuff in the Assets folder, then built, it slowed down a lot. We built it before the organisation and it worked just fine.

Jul 14 '10 at 02:14 PM Graeme

Is it possible that some of them got moved in a way which broke the asset links or resource paths, throwing more errors?

Jul 14 '10 at 02:19 PM Mike 3
(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:

x1677
x663
x177
x156

asked: Jul 14 '10 at 01:06 PM

Seen: 1716 times

Last Updated: Jul 14 '10 at 01:06 PM