Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Constant Stuttering in very simple scene

Discussion in '2023.2 Beta' started by SpookyCat, Sep 13, 2023.

  1. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,788
    I am getting this constant stuttering causes by spikes in the Editor. I have a very simple test scene, just a cube in a scene so that I could eliminate as much as possibel to try and track down a cuase but I have no luck, the spikes are coming from the Editor loop and seems to be a range of things from Semaphore waits to Application.Tick and EditorLoop. The spikes are always at least 16ms and can got to 40ms+ and sometimes over several frames causing major stuttering in any game scene. I have not seem this in previous non beta versions of Unity. So can anyone help as to what the cause is. Below are a couple of grabs from the Editor Profiler and one showing the simplicity of the scene.
    Screenshot 2023-09-13 003140.png Screenshot 2023-09-13 003258.png Screenshot 2023-09-13 003337.png
     
  2. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,788
    Also Menu.RebuildOSMainMenu is causing big spikes as well.
    Screenshot 2023-09-13 004130.png
     
  3. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,095
    I'm reasonably sure this is string garbage and other associated garbage from all the new and improved UI mechanisms in the Editor UI.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,530
    It may also depend on what you have selected in the scene hierarchy and what gets rendered in the Inspector (eg large collections are known to cause slowdowns), and if you have multiple Inspector windows open these drain additional performance.
     
  5. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,788
    There is nothing selected, the inspector is empty, the only object in the scene is a light, camera and a quad.
     
  6. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,095
    I'm not sure it helps these lowest common denominator style response folks to point out their (to my way of thinking) gaslighting.

    Whilst holding onto something and having a lot of panels visible makes this problem worse, it's still blindingly obvious when nothing is selected and play testing in fullscreen with no panels visible.
     
  7. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,628
    Can you test if it improves performance when you open
    Edit > Preferences > General
    and set:
    • Interaction Mode = Custom
    • Frame Throttling = 33
    • Input Throttling = 1