Search Unity

Question URP Framerate Thrashing (Gfx.WaitForPresentOnGfxThread)

Discussion in 'General Graphics' started by dyamanoha_, Feb 25, 2023.

  1. dyamanoha_

    dyamanoha_

    Joined:
    Mar 17, 2013
    Posts:
    87
    upload_2023-2-25_15-42-44.png

    I've recently been noticing frame rate thrashing, especially in standalone builds, which seems to be triggered sometimes by disabling vsync. It does happen in the editor sometimes too.

    One other thing I've been trying to track down is why my game's performance is better in the editor than in is in optimized standalone builds. Like 4ms frame times in-editor and ~16ms frame time standalone.

    Anyway, I think I want to just start a quick conversation about some of these things but I want to figure out first what he heck is going on with this insane lock time.

    Thanks ahead of time!
     
  2. dyamanoha_

    dyamanoha_

    Joined:
    Mar 17, 2013
    Posts:
    87
    Turns out I wasn't keeping an eye on my applications memory usage and there's a leak somewhere that's causing thrashing. Unfortunately the memory that's growing is the 'Unknown' section so I'm not sure where to go from here.

    upload_2023-2-25_21-13-32.png
     
  3. dyamanoha_

    dyamanoha_

    Joined:
    Mar 17, 2013
    Posts:
    87