diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-21 18:14:44 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-21 18:14:44 +0200 |
| commit | 85d4af02662539455cc4ef04edecd3934046d4bf (patch) | |
| tree | f7b70402806560d5673f3e0a6db68692b42847ba /src/instance/inc | |
| parent | 3eef29c327abd46e73c0a4d5b1c186dd7d3878b2 (diff) | |
| download | rts-85d4af02662539455cc4ef04edecd3934046d4bf.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/instance/inc')
0 files changed, 0 insertions, 0 deletions
