• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Rimplot · Oct 16, 2014 at 02:29 AM · buildslowexecutable

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

Comment

People who like this

0 Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KayelGee · Oct 16, 2014 at 08:00 AM 0
Share

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?

avatar image Rimplot · Oct 16, 2014 at 08:35 AM 0
Share

I'll try all of these!

avatar image Statement · Oct 16, 2014 at 09:18 AM 0
Share

Check the Player logfile of your built game. Perhaps you see some kind of error being spammed.

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Griautis · Oct 16, 2014 at 11:23 AM

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.

Comment

People who like this

0 Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KpjComp · Oct 16, 2014 at 11:45 AM 0
Share

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.

avatar image N1warhead · Oct 16, 2014 at 11:48 AM 0
Share

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

avatar image Rimplot · Oct 16, 2014 at 03:33 PM 0
Share

Sorry, but it's in Hungarian... And there are only three buttons and one picture.

 #pragma strict
 
 var Stilus : GUISkin;                    //Az Inspectorban szerkeszthető stílus
 var Hajtovadaszat : Texture;
 var Magassag : int = 250;                //A script által növelt változó, mely az elem helyzetét határozza meg
 var GombSzelesseg : int = 150;            //A gombok szélessége
 var GombMagassag : int = 50;            //A gombok magassága
 var Koz : int = 30;                        //Két gomb közötti hely nagysága
 private var Eloszor : boolean = true;    //Azt tárolja, hogy a script először van-e meghívva
 private var Pozicio : int = GombMagassag + Koz;
 
 function OnGUI () {
     GUI.skin = Stilus;
     GUILayout.BeginArea(Rect(0, Screen.height/2-300, Screen.width, 800));
         GUILayout.BeginArea(Rect((Screen.width/2)-(Hajtovadaszat.width/2), 50, Hajtovadaszat.width, Hajtovadaszat.height));
             GUILayout.BeginArea(Rect(0, 0, Hajtovadaszat.width, Hajtovadaszat.height), Hajtovadaszat);
             GUILayout.EndArea();
         GUILayout.EndArea();
         if (GUI.Button (Rect (Screen.width/2-GombSzelesseg/2, Magassag, GombSzelesseg, GombMagassag), "Játék indítása")) {
             Application.LoadLevel("Terkep");
         }
         if (GUI.Button (Rect (Screen.width/2-GombSzelesseg/2, Magassag + GombMagassag + Koz, GombSzelesseg, GombMagassag), "Instrukciók")) {
             Application.LoadLevel("Instrukciok");
         }
         if (GUI.Button (Rect (Screen.width/2-GombSzelesseg/2, Magassag + 2*(GombMagassag + Koz), GombSzelesseg, GombMagassag), "Kilépés")) {
             Application.Quit();
         }
     GUILayout.EndArea();
 }

avatar image N1warhead · Oct 16, 2014 at 04:08 PM 0
Share

Ehh I can't read Hungarian. I see the normal stuff, but I don't know what half the stuff is in English lol. And I'm not familiar with to much with Unityscript anymore.

Sorry I can't help much, but maybe somebody who can atleast piece together what the other language means and find an error in it.

Try doing a test and see if it runs slow.

Start a new scene and just put a plane with a box on top of it (of course with a camera looking at it)

See what the Frames are.

It also could be Vsync. Goto Edit > Project Settings > Quality and change the Vsync to None or off or whatever it is. (Ur frames will be way better than always) and it may or may not work better for the situation of your game as it can cause screen tearing.

avatar image Rimplot · Oct 16, 2014 at 04:18 PM 0
Share

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)...

avatar image

Answer by sevginurbilgin · Mar 21, 2018 at 10:53 AM

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

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

GameObject problem 1 Answer

The Windows Standalone EXE file is large, how to reduce the size ? 1 Answer

Unity seems to be silently suppressing exception dialogs, and showing no messages. Why is that? 1 Answer

Extremely Slow Game Launching and Build 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges