Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

NetCode 0.0.4 JobTempAlloc leak

Discussion in 'NetCode for ECS' started by solimo, Jan 21, 2020.

  1. solimo

    solimo

    Joined:
    Jan 27, 2013
    Posts:
    3
    When NetCode package present the Unity.NetCode.ServerSimulationSystemGroup produces warnings below if frame is rendered under 2ms. Making scene more complex or enabling vsync/gsync fixes the issue. Is it expected?

    upload_2020-1-21_23-12-2.png

    To reproduce it is enough to load NetCode package and create a default scene.
     
    T-Zee likes this.
  2. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    473
    For now it is expected, we have a bug filed for it so we will investigate it further in the future. The problem is that the server is running at a fixed timestep, so when you render a frame in 2ms the interval between two server ticks is more than 4 frames.
    When you make a server build we by default use Application.targetFramerate to prevent the warnings.
     
    T-Zee and pal_trefall like this.
  3. solimo

    solimo

    Joined:
    Jan 27, 2013
    Posts:
    3
    T-Zee likes this.