- Home /
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?
depends what the platform is, if it's iPhone then obviously your computer has far greater power than the device.
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 $$anonymous$$ac.)
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 $$anonymous$$ono garbage collector is killing it. $$anonymous$$ore investigation required ...
Despite interesting cyclical memory usage patterns (I printed System.GC.GetTotal$$anonymous$$emory 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.
Answer by Mike 3 · Jul 14, 2010 at 01:38 PM
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
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.
Is it possible that some of them got moved in a way which broke the asset links or resource paths, throwing more errors?
Answer by sotirosn · Mar 31, 2016 at 11:44 PM
I know this thread is old but I was having this problem and no exceptions were being logged in the log file. It turned out to be that my graphics card doesn't natively support DX11 and was probably emulating its API on the CPU. I solved the problem by going to the Player Settings of my standalone build settings, and removing the Direct3D11 API from the Graphics APIs for Windows, and only using the Direct3D9 API.