I recently went through the process of running some updates (VS Code Editor package, Unity Hub, maybe 1 other) and ever since, the editor hangs for ~20-40 seconds after it completes a recompile. After I save an updated file, the little circle will spin, and then the editor will quit responding for several seconds, and then will work fine until it re-compiles again. When this happens, Windows task manager registers the editor item (in attached photo) as not-responding, and the resource usage jumps up pretty drastically (up to ~19% CPU and 800MB memory)
First, I deleted all project files with the exception of “Project Settings” and “Assets”. Opened the editor, no dice.
Next, I exported my assets folder as a package and imported it into a new project. Initially, the hanging error did not follow.
Next, I popped open the Packages window and started importing packages I needed, first Probuilder, and next ProGrids. This is when I noticed a problem. As soon as I selected the “Show Preview Packages” option, the editor started to hang. At this point, I switched back over to the main project where I discovered this issue and tried deselecting “Show Preview Packages” and closing the Package window. Viola!
TLDR: Deselecting “Show Preview Packages” and closing the package window (I had it as a permanent tab) helped.