动画控制器 Animator Controllers
引入
为了更好地理解本节的数据,我想指出以下两点: - 所有测试都没有包括任何状态行为(State Behaviour)。如果一个控制器的任何动画层上有一个或多个状态行为,所有这些控制器的运行时间会...
参考基准:两个状态切换
我们的参考基准将采用简单的双状态切换作为参考。 默认的切换对比图。图中显示了两个动画,每个动画包含两个帧,数值相同。已启用“写入默认”。 在每次测试动画层数时,层数与帧时间的关系图呈二...
任意状态(AnyState) & 混合树(Direct Blend Trees)
AnyState 无论AnyState切换的数量多少,AnyState的性能与非AnyState切换相似。这表明,转换检查的数量对帧时间的影响并不显著,这一点也在其他测试中得到了验证。 唯一...
杂项数据
以下是一些与切换不直接相关但可能对某些人有用的杂项数据: 每层的状态数量和过渡数量对性能的影响似乎不大(这可能解释了为什么AnyState的性能较好)。 唯一的例外是当单个状态有大量...
多控制器
使用多个控制器的性能不会按线性比例增长(也就是说,两个每个有100层的控制器比起一个有200层的控制器会有显著更少的延迟)。 实际的关系难以精确描述,但可以通过下面的图示来帮助理解。每条线代表...