Games built in Unity run slowly

Hello! I don’t know why, but when I build my game in Unity and run the .exe file, it starts really slowly. Inside Unity it runs normally, but the executable not. My project isn’t big and I also tried it out with another projects and on another computers, but it’s extremely slow.

E.g.: In one of my projects the first scene is a menu with four buttons and when I click on one of them it loads the new scene, but only after a bit freezing, what’s around half a minute long.

I know it’s strange but I can’t do anything with it…

Can anybody help me what do I do wrong?

EDIT: Here is a setup file for my game

Did you try reinstalling Unity? Is this happening with empty projects aswell? Do you have all scenes in your build? Have you tried removing unused assets?

I'll try all of these!

Check the Player [logfile][1] of your built game. Perhaps you see some kind of error being spammed. [1]: http://docs.unity3d.com/Manual/LogFiles.html

2 Answers

2

Hey, if it runs properly in editor, it should run the same way when built. If that’s not the case, please report this as a bug and of course, try to look for a workaround, so you might continue without waiting for the fix.

I'm not sure it's as simple as that. Inside your build you could change to use DirecttX11 / 9, or 32/64 bit, etc. Any of these build options could effect performance.

Could we see the code for your 4 buttons and menu? Could be as simple as too many If statements acting against each other.

I put a link for a setup file of my game, so you can have a look on it and how does it run. The first run is extremely slow, it's around a minute to start the game (the first button in the menu)...

I have the same problem, Could you find any solutions???