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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

del

Discussion in 'Editor & General Support' started by LacunaCorp, Dec 13, 2015.

  1. LacunaCorp

    LacunaCorp

    Joined:
    Feb 15, 2015
    Posts:
    147
    del
     
    Last edited: Mar 5, 2019
  2. Brainswitch

    Brainswitch

    Joined:
    Apr 24, 2013
    Posts:
    270
    You can use the profiler with builds, just make sure Development Build is toggled (then run the build, and open the Profiler window in the editor and use the Active Profiler drop down).

    Profiling is your best bet to tell you where your problem lies, but it does sound like a Garbage Collector issue.
     
  3. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,628
    Not sure there's enough info there for determining the cause. It would be good to mention Unity version, forward or deferred, DX11, 2D / 3D, HQ desktop or mobile-friendly, etc.

    But based only on the idea that it works well in editor but not as an .exe ... I'm not sure what that could be. If you're running a HQ desktop game, I'd be thinking of heavy shaders and big texture loading, lighting / shadows, reflections (like from water), stuff like that.

    If you can't get a definite idea about what's going wrong, as part of the guessing game you can try some things as test / rule-outs, like a shader warmup.

    Anyway, if you are still stuck, post more info to help with the diagnosis.

    And if you do figure it out, please let us know what it was. :)
     
    larku likes this.
  4. Brainswitch

    Brainswitch

    Joined:
    Apr 24, 2013
    Posts:
    270
    Ah, yes, might be a 'uploading-alot-at-once-to-the-GPU'-issue. A related issue is that sometimes drivers/etc doesn't actually upload stuff to the GPU until the first time it is supposed to be drawn, this can be fixed by rendering to a RenderTexture.