mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 06:12:53 +00:00
Updating tree.
This commit is contained in:
parent
6ee499132c
commit
0d9e25c9ff
1 changed files with 7 additions and 4 deletions
|
@ -291,17 +291,20 @@ Every time RAF ticks it calls the following (in order)
|
||||||
In a tree form it maps to the following:
|
In a tree form it maps to the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
+ StateManager.step (iterates all active States)
|
+ Game.step
|
||||||
|
+ MainLoop.step
|
||||||
|
|
|
|
||||||
+- State.sys.mainloop.step (updates delta values)
|
+- All Active States:
|
||||||
+- State.sys.begin
|
+- State.sys.begin (called once per active state)
|
||||||
+- While (frameDelta within step range)
|
+- While (frameDelta within step range)
|
||||||
|
|
|
|
||||||
+- State.sys.update
|
+- State.sys.update
|
||||||
+- Iterates State.children, if child exists, call child.update
|
+- Iterates State.children, if child exists, call child.update
|
||||||
+- State.update
|
+- State.update
|
||||||
|
|
|
|
||||||
+- State.sys.preRender
|
+- Renderer.preRender
|
||||||
|
+-
|
||||||
|
+- State.sys.render
|
||||||
+- Update Manager Start (State.sys.updates)
|
+- Update Manager Start (State.sys.updates)
|
||||||
+- Game.renderer.render (if State is visible)
|
+- Game.renderer.render (if State is visible)
|
||||||
|
|
|
|
||||||
|
|
Loading…
Reference in a new issue