r/UnityHelp • • Feb 09 '22

Cursor spins every second while in the editor

Brand new project, no editor scripts running at all and my game is not running. Every second my mouse cursor spins like something is happening (compiling scripts, etc) and stops after a split second. It's also lagging my machine because when I run my game (a ball lerping across the screen) I get frames dropped around when the cursor is spinning.

I found some thread from back in 2017 where someone was having this issue because Unity was recompiling excessively. Apparently the issue was resolved in a patch so it does not really help me much with my situation.

Has anyone seen this? Any resolution to suggest?

2 Upvotes

4 comments sorted by

1

u/Musonica Feb 09 '22

I had a similar problem a while back and it was because unity was rebaking the lighting... you could try switching this off.

1

u/Mojo-Mouse Feb 10 '22

To confirm I did the right thing: I went into Window->Rendering->Lighting and then disabled Mixed Lighting->Baked Global Illumination. I also see that Workflow Settings-> Auto Generate is disabled.

Doing this did not resolve my issue, so either I did it wrong or that wasn't the problem.

1

u/Musonica Feb 10 '22

There could be any number of issues depending on OS and version of Unity... you could try another version of Unity and see if you still have the problem, or run a system profiler to see if it is a disc access / memory / CPU problem... sorry it is the only issue I had that resembles your problem.

1

u/Mojo-Mouse Feb 10 '22

For some reason I thought the profiler was only available for a pro license of Unity so I never thought to use it. Now that I have I can see large spikes in "Rendering" and "Scripts", though many of them seem to be related to the profile doing GUI work.

You have definitely put me on a path to diagnose the problem further so I'm very appreciative of that.

I'll ask a follow-up question when I have more information! :)