Search Unity

Question During first seconds of gameplay, Batch.DrawStatic is too high

Discussion in 'High Definition Render Pipeline' started by JavierOlvera, Nov 10, 2022.

  1. JavierOlvera

    JavierOlvera

    Joined:
    Sep 10, 2019
    Posts:
    11
    Hi! I've been dealing with this for a while but I can not find any answer. Sometimes, when I hit Play, my game runs at 10fps (it usually runs at +60fps) for a few seconds and then everything goes back to normal. It happens in any scene (even in an empty one). The profiler says it's the Batch.DrawStatic and I've no idea what can make it having such a high performance impact just for a few seconds. This also happens in the build.

    Also, if I stop the playmode before the fps goes back to normal, the whole editor goes extremely laggy.

    upload_2022-11-11_0-2-0.png


    I saw in a youtube video (that shows a similar problem) that restoring Nvidia's 3d graphics settings on the Nvidia control panel solves this problem. I tried it and it worked, but just for a few hours. I tried a build of the game in a different computer and it did not happen.

    Any clue of how to solve this? Thanks!

    (I'm using Unity 2020.3.10f1 HDRP)