mirror of
https://github.com/photonstorm/phaser
synced 2024-12-03 09:59:42 +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:
|
||||
|
||||
```
|
||||
+ StateManager.step (iterates all active States)
|
||||
+ Game.step
|
||||
+ MainLoop.step
|
||||
|
|
||||
+- State.sys.mainloop.step (updates delta values)
|
||||
+- State.sys.begin
|
||||
+- All Active States:
|
||||
+- State.sys.begin (called once per active state)
|
||||
+- While (frameDelta within step range)
|
||||
|
|
||||
+- State.sys.update
|
||||
+- Iterates State.children, if child exists, call child.update
|
||||
+- State.update
|
||||
|
|
||||
+- State.sys.preRender
|
||||
+- Renderer.preRender
|
||||
+-
|
||||
+- State.sys.render
|
||||
+- Update Manager Start (State.sys.updates)
|
||||
+- Game.renderer.render (if State is visible)
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue