frame method
Runs every active PerFrame, in priority order: once per rendered frame, after its fixed updates (see PerFrame.frame).
When one ran, the transformHierarchy settles again afterwards, so the children of what a frame system moved follow it in the same frame rather than at the next fixed update.
Implementation
void frame(double deltaTime, double alpha) {
var ran = false;
for (final system in _running) {
if (system is! PerFrame ||
!system.isActive ||
!identical(system._addedTo, this)) {
continue;
}
(system as PerFrame).frame(deltaTime, alpha);
ran = true;
if (commands.isNotEmpty) commands.flush();
}
if (ran && transformHierarchy.enabled) transformHierarchy.propagate();
}