So I’ve recently updated to 2018.3 from 2017.3 (I know, quite the leap)
And for the most part, things have gone really well! The only huge issue is when I go to press play in the editor, I get a HUGE spike that happens, literally hangs for a minute or two, then resumes no problem. It’s a fairly large project, so I’m used to like a 6-10 second wait, but this feels extreme…
I managed to profile it in the editor and found out it’s some crazy GC.Alloc.
Try deleting your temp folders (Library/Temp/any folder that isn’t Assets or ProjectSettings) and reimport everything. The fact that this issue doesn’t occur on a new project makes me think your Library is somehow corrupted.
It’s also worth noting that at least part of those ridiculous alloc numbers are probably partially to blame on the profiler itself running.
Can you open detailed view without crash?
48M samples might be too much for profiler, but if you have enough RAM (64GB) you might try to enable managed allocation callstacks collection. For 48M samples that might use 4-5GB extra, but you might be able to see some information and pin point offending source code.
Also you can run Editor with -profiler-maxusedmemory 64000000 . That would decrease profiler memory buffer and cause stopping the capture at some point. But also gives an ability to look at the allocation callstacks for a reduced frame data set.
Thanks for the great input unfortunately even with those editor flags and 64GB of RAM (albeit with chrome eating a few of those…) I can’t even seem to load in my profiler data. I get this?
I’ll try again to generate some profiler data and preview it in detailed view with those flags enabled, though everytime in the past when trying to enter detailed view its crashed out so I was unable to pin point the culprit
Please submit a bug-report as described in this document:
It’s important that you report these issues together with a reproduction project if you want them to get fixed. If you don’t do it, it might be a long time until someone else reports them or until Unity Technologies find them.
After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post the Case number (number only, not the link) in this forum thread for Unity staff to pick up.