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

Bug Calling RigBuilder.Build causes ever-increasing animator initialize times

Discussion in 'Animation Rigging' started by craftsmanbeck, Feb 28, 2022.

  1. craftsmanbeck

    craftsmanbeck

    Joined:
    Nov 20, 2010
    Posts:
    40
    I'm doing some runtime creation of rigs, and while everything seem to function correctly, I've noticed that each time RigBuilder.Build is called, it invokes Animator.Initialize later that frame, and each time it's called it takes longer than the last time. To demonstrate this clearly, if you call Build every frame, you end up with a profiler graph that looks like below. I tried invoking Clear an the RigBuilder, but it's already invoked by the Build method it seems, and so doesn't do anything. Is there a particular function call I'm missing to remove old resources, or is this a bug? Unity 2021.1.18f1, rigging package 1.0.3

    upload_2022-2-28_13-9-51.png
     
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    craftsmanbeck likes this.
  3. craftsmanbeck

    craftsmanbeck

    Joined:
    Nov 20, 2010
    Posts:
    40
    Thanks for the reply! Unfortunately those didn't seem to work. I'm on a bit of a time crunch rn, but when I'm free I'll put together an repro project and submit a bug report.
     
    simonbz likes this.
  4. JoergPeter

    JoergPeter

    Joined:
    Nov 2, 2022
    Posts:
    1
    I'm having the same problem - has a solution emerged?
     
  5. craftsmanbeck

    craftsmanbeck

    Joined:
    Nov 20, 2010
    Posts:
    40
    I'm not aware of one myself, though I haven't touched this stuff in a while, don't know if I ever had the time to submit a bug report. If the issue is clear on your end, see if you can submit one with your project--not sure if I still even have the project files in question.