Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity Editor performance issue after game playing once

Discussion in 'Editor & General Support' started by Chefty, Nov 5, 2020.

  1. Chefty

    Chefty

    Joined:
    Jun 17, 2015
    Posts:
    43
    Hi everyone,

    After I play once the game and stop it, the editor starts to slow down more and more. I did some editor profiling:


    I feel like there is some memory leak happening but I can't really find what is the cause. It's just impossible for me to use unity until I restart it.

    I use unity 2020.1.10f1.

    Thanks in advance for your help.

    Cheers,
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Hi @Chefty,

    Would be possible for you to create a copy of your project and start removing assets/scripts to try to isolate the issue?
     
  3. Chefty

    Chefty

    Joined:
    Jun 17, 2015
    Posts:
    43
    Hi @DiegoDePalacio !

    I can try to do that, but it will take a while.

    I just got my hands on this project and it weights 50Gb...
    Also at this point I've tried other solutions (e.g changing fixed timestep, downgrade to older Nvidia driver) but it didn't work.

    AND It seems there is like a memory leak (?) because Unity ram usage keep going up without doing anything, it reached 10gb yesterday.


    Thanks for your help.
     
  4. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    MartinTilo likes this.
  5. Chefty

    Chefty

    Joined:
    Jun 17, 2015
    Posts:
    43
    @DiegoDePalacio I ended up emptying my ram with this tool: RAMMap. After that, I was able to use Unity "decently". Sometimes Unity's ram usage still goes up like crazy until it crashes.

    The standalone profiler didn't help me much except I realized that collab is using a lot of resources.

    I have planned to clean this huge messy project once for all in a few weeks and to get rid of Collab. I will bring an update then.

    Cheers and thanks for the support!
     
    Last edited: Nov 14, 2020
    DiegoDePalacio likes this.
  6. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Cheers and good luck paying your technical debt! ;)

    Let us know if you need more help.