任务失败, 该分支已经废弃

This commit is contained in:
2025-12-02 10:15:29 +08:00
parent cccf1f7577
commit b1a2d959c7
3 changed files with 141 additions and 10 deletions

View File

@@ -108,7 +108,20 @@ namespace Demo.Game
Foo();
}
base.UpdateTicks(currentTime, deltaTime, tickType);
// 调用调度器进行扁平化Update仅当有对象注册时
if (Scheduler != null && Scheduler.TotalRegistered > 0)
{
using (Profiler.BeginZone("RootObject.SchedulerUpdate"))
{
Scheduler.DoUpdate(currentTime, deltaTime, tickType);
}
}
else
{
// 旧方式调用base.UpdateTicks()(保持向后兼容)
base.UpdateTicks(currentTime, deltaTime, tickType);
}
}
}
}