Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

GC Alloc in RigBuilder.Update

Discussion in 'Animation Rigging' started by cyanryanlion, Apr 16, 2020.

  1. cyanryanlion

    cyanryanlion

    Joined:
    Feb 17, 2020
    Posts:
    20
    Hey,

    Unity Version: 2020.1.0b5
    Animation Rigging: preview 0.3.3

    I'm seeing GC Alloc inside RigBuilder.Update, due to the creation of an array each frame:

    syncSceneToStreamLayer.Update(layers.ToArray());

    Seeing this in Editor as well as standalone windows build.

    Is there something I'm doing wrong that's causing this? Or is this something that will be improved in a future release?
     
    Jebtor likes this.
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    Good catch!
    Indeed RigBuilder.Update shouldn't be doing GC allocs...
    We'll fix this in an upcoming release of Animation Rigging.
     
  3. cyanryanlion

    cyanryanlion

    Joined:
    Feb 17, 2020
    Posts:
    20
    Awesome, thanks!