Remove motion lerper. Reconstruct RMV and motion node. Add motion node pool.

This commit is contained in:
2023-04-19 13:48:06 +08:00
parent a5439430fb
commit 659f2165ff
3 changed files with 94 additions and 209 deletions

View File

@@ -153,8 +153,8 @@ namespace Cryville.Crtr {
bbus.ForwardByTime(dt);
UnityEngine.Profiling.Profiler.BeginSample("ChartPlayer.Forward");
UnityEngine.Profiling.Profiler.BeginSample("EventBus.Copy");
bbus.CopyTo(2, tbus);
bbus.CopyTo(3, nbus);
bbus.CopyTo(tbus);
bbus.CopyTo(nbus);
UnityEngine.Profiling.Profiler.EndSample();
actualRenderStep = step;
@@ -250,11 +250,12 @@ namespace Cryville.Crtr {
UnityEngine.Profiling.Profiler.GetTotalReservedMemory()
#endif
);
if (ContainerState.RMVPool != null) {
if (RMVPool.Shared != null) {
statusbuf.AppendFormat(
"\nPools: RMV {0}, MC {1}",
"\nPools: RMV {0}, MC {1}, MN {2}",
RMVPool.Shared.RentedCount,
MotionCachePool.Shared.RentedCount
MotionCachePool.Shared.RentedCount,
MotionNodePool.Shared.RentedCount
);
}
if (loadThread != null) {
@@ -673,6 +674,7 @@ namespace Cryville.Crtr {
}
RMVPool.Shared = new RMVPool();
MotionCachePool.Shared = new MotionCachePool();
MotionNodePool.Shared = new MotionNodePool();
}
void LoadSkin(FileInfo file) {