Remove motion lerper. Reconstruct RMV and motion node. Add motion node pool.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user