i know it fires every frame but my question does it fire at the start or end of the frame or somewhere in between? if i have a event fire will it fire before or after the onupdate?
1. Handle pending UI Events, Key presses, Mouse Clicks.
2. Execute OnUpdate on each visible Frame with a handler.
3. Repaint UI over the top of the game world.
If you have 60fps, then OnUpdate will fire 60 times per second (on each frame draw). Even if you just have 15fps, that's still 15 times a second.
That's not what Yssaril asked. :P
Normal events are handled/fired before OnUpdate handlers in the rendering process. And OnUpdates come before the redraw, so you can update displayed graphics in OnUpdate safely.
yes it does because i have two things that trigger one of an event the other of an onupdate but they need to run in the right sequence the event one should go first so i am all set :) otherwise i would have had to queue it till both the event and the onupdate fired this way i can just rely on the engine to do it in the right sequence
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
1. Handle pending UI Events, Key presses, Mouse Clicks.
2. Execute OnUpdate on each visible Frame with a handler.
3. Repaint UI over the top of the game world.
That's not what Yssaril asked. :P
Normal events are handled/fired before OnUpdate handlers in the rendering process. And OnUpdates come before the redraw, so you can update displayed graphics in OnUpdate safely.
yes it does because i have two things that trigger one of an event the other of an onupdate but they need to run in the right sequence the event one should go first so i am all set :) otherwise i would have had to queue it till both the event and the onupdate fired this way i can just rely on the engine to do it in the right sequence