As it is known, various events are called during one frame (application lifecycle), but in a specific order. Here are some of them:
- initialization
- postInitialization
- fixedUpdate
- update
- postUpdate
We can subscribe to them like this:
this.app.on('update', function () { console.log('[test] update'); });
this.app.on('initialize', function () { console.log('[test] initialize'); });
But initialize
is called only once. However, I need to track its execution every frame, every application lifecycle. How can this be implemented?