summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.h
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2020-06-01 10:19:47 +0200
committerYexo <t.marinussen@gmail.com>2020-06-01 10:59:11 +0200
commita9b3312d1a4962d07a2e7976e8352c7113201a9e (patch)
tree1ad707a62a93573c014cc801e2456bf02fb6574d /src/video/sdl2_v.h
parent281d93f60052703b82394ab63fcb063ba700e004 (diff)
downloadopenttd-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/video/sdl2_v.h')
0 files changed, 0 insertions, 0 deletions