Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Reoccuring lag-spikes during play-testing

Discussion in 'Editor & General Support' started by McNameless, Dec 1, 2023.

  1. McNameless

    McNameless

    Joined:
    Oct 18, 2022
    Posts:
    3
    Hello everyone,

    I would like to ask for advice, regarding problems with reoccuring lag-spikes during play-mode.

    I already tried to check the profiler and the results are shown below. During certain frames, it seems like something is delaying every action and at the moment.

    It seems to be related to the editor-loop/IMGUI and I already read about the editor, having a bad influence on profiling performance during testing and garbage collecting in general but this seems to be unusual.

    For testing I created an empty project with no custom scripts or objects and the problem still persists.

    It would be nice if someone with more experience could give me a hint or a suggestion on what could cause this problem.

    - Tried with and without vsync
    - Newest graphics-driver
    - Harware temperature and usage is good
    - Unity Version 2023.2.1f1 and 2022.3.13f1 (tested both)

    Thanks in advance!
     

    Attached Files:

    Last edited: Dec 3, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,108
    Hopefully not in that order? Downgrading is not supported. At times it can lose information or even break assets. Or worse.

    There was or is an issue with such spikes. I can't remember the exact version but it was around the 2022/2023 transition. Might be related.

    One thing to keep in mind is that it matters what windows are open, and what they are currently showing (selection). You could test closing some of these windows, including the inspector, until you find the one that may be causing these hiccups. Running "reset all layouts" from the top right Layouts menu may also help.
     
  3. McNameless

    McNameless

    Joined:
    Oct 18, 2022
    Posts:
    3
    Hi

    thanks for the reply.

    I tried both versions with different projects, so there should be no compatibility problems. (and even made a new one for testing)
    I will try your suggestions and will report back!

    Thanks!
     
  4. McNameless

    McNameless

    Joined:
    Oct 18, 2022
    Posts:
    3
    After following your advice,

    it seems like the Problem got slightly better, but these Stutters still occur.