diff options
author | Yexo <yexo@openttd.org> | 2020-06-01 10:19:47 +0200 |
---|---|---|
committer | Yexo <t.marinussen@gmail.com> | 2020-06-01 10:59:11 +0200 |
commit | a9b3312d1a4962d07a2e7976e8352c7113201a9e (patch) | |
tree | 1ad707a62a93573c014cc801e2456bf02fb6574d /src/window_gui.h | |
parent | 281d93f60052703b82394ab63fcb063ba700e004 (diff) | |
download | openttd-a9b3312d1a4962d07a2e7976e8352c7113201a9e.tar.xz |
Fix #8024: make online content gui more responsive while loading
Previously the internal content list was invalidated and sorted for
every new item added. Now the sorting is delayed until the GUI is
drawn, which means we only sort once per GUI tick.
Since the amount of incoming items per GUI tick is not controlled by
the GUI but rather by network speed, we were previously doing a lot
of duplicate work per tick, causing the mouse cursor to lag while
the list was initialized.
Diffstat (limited to 'src/window_gui.h')
0 files changed, 0 insertions, 0 deletions