Search Unity

Bug Random Lag Spikes in PlayMode in unity 2022.2.1f1

Discussion in 'Editor & General Support' started by Alessadro3, Dec 27, 2022.

  1. Alessadro3

    Alessadro3

    Joined:
    Jan 6, 2020
    Posts:
    1
    When entering PlayMode in unity 2022.2.1f1 there will be random lag spikes about every 2 seconds.
    My scene was fairly simple, the default 3d urp scene, with a plane, a cylinder, a cube and 2 lightweight scripts, but i tried making a new empty scene, and creating new blank 3d projects (urp as always), even in different unity versions.

    I tried profiling, with the unity profiler, and while the average frametime was from 0.75ms to 1.6ms (1300~600 fps), during the lag spikes it would reach at least 20ms, often over 100ms, and a couple of times it would reach 385ms!

    Still using the profiler, i discovered that all of the frametime spikes were caused by the "Editor Loop".

    Also, important pc specks:
    CPU: AMD Ryzen 3700x
    GPU: Asus 3060TI Dual OC
    RAM: 32gb at 3200MHz
    psu isn't the problem
     
    JamesL98 likes this.