The impression I got from this unity issue tracker: https://issuetracker.unity3d.com/issues/editorscenemanager-dot-backupscenes-saves-non-dirty-scenes-when-entering-play-mode
is that Unity was previously bugged in running this every time a scene entered play mode, not just whenever it was dirtied. This was fixed supposedly, with the user expecting this to run 0 times in an undirtied scene.
In my case, it is occurring on every play mode enter, taking 100+ms of time every single play mode (image 1). I thought maybe this is simply an issue with my current project with something maybe hidden dirtying in some way, so I made a completely new and fresh project with nothing extra installed to it on the same version, (image 2) and still, same result, only there is much less to back up obviously.
I might just not understand what this code is for (from my understanding it is so Unity has a scene to return to after entering play mode), and am misunderstanding the issue tracker, but I'd appreciate any help on this. I don't understand why this would need to run more than once if not yet dirty from the previous save. This might be a bug, I'd appreciate if anyone could try running the profiler themselves and see if it happens to them too on modern versions. Thanks.
On Unity 6000.0.50f1
How to reproduce:1. Open the attached “EmptyProject” project2. Select “Window” → “Analysis” → “Profiler” in the main menu3. Enable t...