Troubleshooting sudden editor lag
Hi, I haven't been able to find any answer to this here or anywhere else (except for the things I've mentioned trying already below) so hopefully it hasn't been asked already. I know the most obvious answer is that the editor is just laggy compared to a build of the game, but I'm experiencing the issue with projects that didn't have any lag at all the day before.
I first started experiencing it after updating to Unity 2020.2.5f1, I hadn't changed the project much at all, and I've tried running the game after getting rid of the new code. I originally figured that the update must have caused problems, so I decided to downgrade back to Unity 2019. This didn't really help at all so I uninstalled Unity, Unity Hub and Visual Studio, deleted everything unity related in Program Files and installed a fresh new Unity 2019.4.20f1.
I tried using the profiler to see if I could find the cause of the problem there but to be honest I'm not entirely sure what I'm looking for there, when I tried to go back and check again today I wasn't able to get much from it as Unity freezes every time I run the game so I'm not really able to stop the game running and interact with the profiler, all I can say about this is that the greatest amount of CPU usage is taken up by "other" which I'm guessing probably doesn't narrow it down too much.
I also read that deleting the Library folder of the game might help but no luck there, also making sure that all packages were up to date but still no fix. While I am experiencing more lag than before on all projects, it seems to be the android games that have it the worst if that says anything. As for the minor changes I made prior to this issue, (just a slope check in my player controller) removing this code doesn't make a difference.
So that's where I'm at now, just not really sure where to look next. I figured it might be worth while reaching out for some advice rather than spending the night waiting for Unity to reinstall again. I should also note that I've tried Unity 2020.2.6f1, 2020.1.17f1 and a couple of others I can't remember specifically, but basically quite a few with the same problem. Also I don't know if this is relevant but the apk's don't lag once they've been built.
TL;DR: Bad lag in editor all of a sudden, I'm dumb and don't know what I'm looking for to troubleshoot this.