Search Unity

Unity is running reaalllllly slooooooooow...

Discussion in 'Editor & General Support' started by eric56379, Oct 21, 2014.

  1. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    So, before posting, be sure that you state it clearly... I have troubles understanding a lot. Anyways, I am trying to create a really great game for my company. And it is running really slow. How can I speed this up? I keep on doing YouTube tutorials and they are not helping. I updated all my drivers, and it still didn't really help. Any ideas? Thanks so much!
     
  2. MrGuardianX

    MrGuardianX

    Joined:
    Sep 29, 2014
    Posts:
    58
    In my experience, Unity runs slowly when you are printing out a lot of debug messages. Check this out.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    You couldn't have been less vague yourself, could you? There's a million reasons why your code might run slow. Did you try profiling it?
     
    Last edited: Oct 21, 2014
  4. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Heya Eric,

    First question: Is the Unity Editor slow? Or is the game itself slow?
     
  5. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    This is just a shot in the dark:
    New users often try different things out, jump to something else, ... . It is not uncommon that the console is spammed with messages, warnings and error messages. If that is the case, this can easily destroy the performance.
     
  6. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    Yep, the code is running fine. Everything is running correctly... Just really slow.
     
  7. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    I'm not that much of a new user to Unity. I have been using Unity for a year now, I just joined the forums not that long ago.
     
  8. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    The editor itself is slow.
     
  9. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    No link attached?
     
  10. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    What are your computer specs?
     
  11. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,536
    You probably have a loop that is tanking the performance down but not throwing an error.
     
  12. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    I don't know. Where can I find them? Do you mean like what type of computer I have and RAM and stuff?
     
  13. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Yes, thats what i mean
    Hit start, type run in the search box, hit enter.
    type dxdiag, hit enter.

    You can find all sorts of information about your computer there.
    That is, if u use windows.
     
  14. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
     

    Attached Files:

  15. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    Darn, ok, will I need to try to boost my computer performance? Because my computer is really fast. It is fine with games and stuff like that.
     
  16. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Looks fine.

    When you run a default Unity project, that comes with the engine. Does it still run slow?
     
  17. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,536
    I'm not sure if this is a serious question or not.
     
    eric56379 likes this.
  18. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    Nope.
     
  19. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    If you have Unity Pro open up the profiler when running your game, see what is hitting the performance.

    If not, also take a look at the stats window in the game view, are there any high values like DrawCalls? Alot of Tris?
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    So what did profiling show you?
     
  21. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    How do I open it?

    (And thanks for being so helpful)

    Edit: Nevermind, found it, I will post the status
     
    Last edited: Oct 21, 2014
  22. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    All of them are pretty high.

    Another edit: Whenever I run the game now, it crashes my whole computer.
     
  23. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Do u have a screenshot of the profiler screen?
     
  24. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    I tried, but my computer always crashes when I play the game.
     
  25. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Disable gameobjects one by one until you get good performance to see if one of the gameobjects is the culprit.
     
  26. eric56379

    eric56379

    Joined:
    Mar 11, 2014
    Posts:
    89
    I think its the waterfalls. I disabled it and it's getting ands getting a little better.