Unity Version 2019.3.13f1 - Windows 7
In play mode my project is perfectly performant, 60fps.
However, in the editor it slowly starts to lag over time. The fps drops at a steady rate. Strangely, unfocusing then refocusing the Unity Editor resets the lag.
You can see in the editor profiler recording below how Rendering increases steadily over time. Aditionally, there seems to be a steady increase in total memory allocated.
SceneCamera.Finish seems to be what is slowing down over time - selecting anything more under that in the profiler no longer highlights the green “Rendering” area. Unfortunately, there is no information on what SceneCamera.Finish is doing or how to speed it up anywhere online
What could possibly be causing this?
Profiler before refocusing Unity Editor:
Profiler after refocusing Unity Editor: