Search Unity

Large performance disparity between setting animator time with positive vs. negative time delta

Discussion in 'Animation' started by thebarryman, Oct 23, 2019.

  1. thebarryman

    thebarryman

    Joined:
    Nov 22, 2012
    Posts:
    130
    We are currently observing a large performance disparity between calling SetTime() with a positive vs. negative time delta on a paused AnimationClipPlayable.

    If the time delta is positive, we see performance roughly equivalent to a playing AnimationClipPlayable. However, with a negative time delta (the time passed to SetTime() is less than the AnimationClipPlayable's current time) we are seeing **really** bad performance.

    Any ideas as to why this might be the case? We've tried numerous hacks to try to see if we can get the same behavior with better performance but have not had success thus far. The only thing I can think of that we haven't yet tried is to create a reversed version of every animation clip, which unfortunately due to RAM constraints is not a possibility for our project.