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 2022.3.7f1 HDRP experiences severe performance degradation every few seconds

Discussion in 'High Definition Render Pipeline' started by HANGIYA_2016, Aug 15, 2023.

  1. HANGIYA_2016

    HANGIYA_2016

    Joined:
    Jan 18, 2017
    Posts:
    33
    TT.png
    Please fix it as soon as possible ...
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    This is a profiler thing. If you do not have the profiler open it does/should not happen.
    Seems to be related to the memory profiler, so maybe close that?
     
  3. HANGIYA_2016

    HANGIYA_2016

    Joined:
    Jan 18, 2017
    Posts:
    33
    There is also a noticeable delay with an empty scene and no other tools open.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Then profile that with just the CPU profiler maybe
     
  5. Skiriki

    Skiriki

    Joined:
    Aug 30, 2013
    Posts:
    66
    To clarify @DevDunk's point: the 0.40ms for collecting memory stats as shown in the Timeline view here would go away if you were to remove the Memory Profiler Module from the Profiler Window using the top left hand drop-down in the window.

    BUT: we can't tell you if that would make the spike go away because the Timeline view here shows the data for the latest (right-most) frame and not for the frame with the spike of 16ms.

    Also, chances are that this is related to the Editor so even if you clicked on it, Timeline might just show you a nearly 15 Ms long strip for the "EditorLoop". If that's the case then switch the Profiler target from "Playmode" to "Editor" and profile that again to get details of what causes the spike. If that's not enough detail, then turn on Deep Profiling.
     
  6. HANGIYA_2016

    HANGIYA_2016

    Joined:
    Jan 18, 2017
    Posts:
    33
    TTA.png

    I found the problem, but I don't know what's causing
     
  7. Skiriki

    Skiriki

    Joined:
    Aug 30, 2013
    Posts:
    66
    Have you unfolded that GameView.Repaint? Have you unfolded it until the big chunk of time dilutes into smaller chunks?
     
  8. HANGIYA_2016

    HANGIYA_2016

    Joined:
    Jan 18, 2017
    Posts:
    33
    TTAC.png
    Is that the problem?
     
  9. Skiriki

    Skiriki

    Joined:
    Aug 30, 2013
    Posts:
    66
    Probably somewhere in there, but it looks like you've disabled Deep Profiling again so there are no further details on what is probably some managed (read C#) code that is executed in that scope.

    If Deep Profiling doesn't add any data, it might also be worth looking at this in Timeline view instead of Hierarchy and see if any other thread does something simultaneous to that long wait, like GC.Collect, which would stop-the-world, i.e pause all other threads, while it processes.