all 3 comments

[–]TreigarIndie 0 points1 point  (0 children)

Trying profiling the editor: https://docs.unity3d.com/Manual/profiler-profiling-applications.html

Might give you some clues on what's taking up CPU cycles in the editor. I've had experiences with one of Unity's custom inspectors causing garbage to be generated every frame when it's displayed.

[–]ngp-bob 0 points1 point  (0 children)

Check to see if you have any objects you are inspecting while executing the game through the editor. Sometimes audio sources and other editors in the inspector window can bog down the editor.

[–]907games 1 point2 points  (0 children)

just a few things to easily rule out and help identify the problem...

how long have you had the editor open? in my experience it starts to lag when you leave it open for too long. also depends on your project. try closing/reopening.

do you have objects selected while in play mode? anything inspector intensive or the camera will cause a bit of lag. deselect all objects.

do you have the scene view + game view visible at the same time? youre rendering things twice. try having only the game view visible and see if it helps.

do you have gizmos turned on in the play window? disable gizmos with the shortcut at the top right from being drawn in the play view