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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Random Lag Spikes in PlayMode in unity 2022.2.1f1

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

  1. Alessadro3


    Jan 6, 2020
    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