m
→Event/Update Ordering
m (→Event/Update Ordering: (typo fix)) |
|||
| Line 1: | Line 1: | ||
{{uitech}} | |||
(Posted in the WoW UI Forum by Slouken on 2005-05-26) | (Posted in the WoW UI Forum by Slouken on 2005-05-26) | ||
== Page Composition == | |||
Well, an understanding of how the UI is rendered would help: | Well, an understanding of how the UI is rendered would help: | ||
| Line 25: | Line 29: | ||
Each time the screen is re-rendered (i.e. each Frame, in the FPS sense), the process runs as follows: | Each time the screen is re-rendered (i.e. each Frame, in the FPS sense), the process runs as follows: | ||
# Handle pending UI Events, Key presses, Mouse Clicks. | |||
# Execute OnUpdate on each visible Frame with a handler. | |||
# Repaint UI over the top of the game world. | |||
The most important part of this is that OnUpdates happen right before painting the UI, so you can defer making rendering decisions until then without any visible impact. | The most important part of this is that OnUpdates happen right before painting the UI, so you can defer making rendering decisions until then without any visible impact. | ||