Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

NetworkIdentity allocates 37 KB when starting empty scene

Discussion in '5.2 Beta' started by movra, Aug 26, 2015.

  1. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
    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.

    upload_2015-8-27_0-45-8.png

    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?
     
    Last edited: Aug 26, 2015
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,649
    IIRC the UNetStaticUpdate part at least is from profiler setup for UNet, and will not happen outside of the Editor.
     
  3. seanr

    seanr

    Unity Technologies

    Joined:
    Sep 22, 2014
    Posts:
    669
    it appears to be from the scene post-processing that UNet does. Yes, it will only happen in the editor.
     
  4. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
    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.