aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-21 18:14:44 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-21 18:14:44 +0200
commit8fd167bebf94605cd095212bacff39c98a43c480 (patch)
treeff9224f721acd11499b00d59a79e3494fc0ff0bd /src/game
parentd9851c5e7864121e804b4563eedffef830d5117e (diff)
downloadjancity-8fd167bebf94605cd095212bacff39c98a43c480.tar.gz
gui: fix wrong logic on update/render/deinit
The older implementation caused some elements to be update/rendered/deinitialized more than once per call. For example, considering the following tree of GUI elements: A B C D E The older implementation would update/render/deinitialize C and E more than once, as shown below: Update A Update B Update C Update D Update E Update C This was because a GUI element was acting on its siblings, but the siblings would also act on theirs, causing the extra calls. OTOH, as an additional improvement, no nested call is now required for siblings.
Diffstat (limited to 'src/game')
0 files changed, 0 insertions, 0 deletions