movra
1
Every time I start a scene a NetworkIdentity is created. It allocates 37 KB of memory.
At the same time UNetStaticUpdate is called which adds 5 ms to the startup spike.

The interesting part is that the scene is completely empty. So I don’t know where it’s coming from.
Can we get rid of that or is it intended behavior?
IIRC the UNetStaticUpdate part at least is from profiler setup for UNet, and will not happen outside of the Editor.
seanr
3
it appears to be from the scene post-processing that UNet does. Yes, it will only happen in the editor.
movra
4
OK then, nothing to worry about. Thanks for the explanation. It’s just a bit of a nuisance to see those 2 entries when profiling startup time.