OpenTTD/src/video
Patric Stout 970fedd78c Add: make modal windows update more smooth
Basically, modal windows had their own thread-locking for what
drawing was possible. This is a bit nonsense now we have a
game-thread. And it makes much more sense to do things like
NewGRFScan and GenerateWorld in the game-thread, and not in a
thread next to the game-thread.

This commit changes that: it removes the threads for NewGRFScan
and GenerateWorld, and just runs the code in the game-thread.
On regular intervals it allows the draw-thread to do a tick,
which gives a much smoother look and feel.

It does slow down NewGRFScan and GenerateWorld ever so slightly
as it spends more time on drawing. But the slowdown is not
measureable on my machines (with 700+ NewGRFs / 4kx4k map and
a Debug build).

Running without a game-thread means NewGRFScan and GenerateWorld
are now blocking.
2021-03-10 13:41:18 +01:00
..
cocoa Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
CMakeLists.txt Codechange: [SDL2] Split driver in base-part and default backend 2021-02-22 22:16:07 +01:00
allegro_v.cpp Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
allegro_v.h Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
dedicated_v.cpp Add: make modal windows update more smooth 2021-03-10 13:41:18 +01:00
dedicated_v.h Codechange: Use std::string in the driver and blitter selection code. 2020-05-21 20:02:34 +02:00
null_v.cpp Add: [Video] move GameLoop into its own thread 2021-03-08 19:18:55 +01:00
null_v.h Codechange: Use std::string in the driver and blitter selection code. 2020-05-21 20:02:34 +02:00
opengl.cpp Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread. 2021-03-08 21:35:35 +01:00
opengl.h Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread. 2021-03-08 21:35:35 +01:00
sdl2_default_v.cpp Add: [Video] move GameLoop into its own thread 2021-03-08 19:18:55 +01:00
sdl2_default_v.h Remove: [Video] no longer draw in a thread 2021-03-08 19:18:55 +01:00
sdl2_opengl_v.cpp Add: [Video] move GameLoop into its own thread 2021-03-08 19:18:55 +01:00
sdl2_opengl_v.h Add: [Video] move GameLoop into its own thread 2021-03-08 19:18:55 +01:00
sdl2_v.cpp Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
sdl2_v.h Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
sdl_v.cpp Add: [Video] move GameLoop into its own thread 2021-03-08 19:18:55 +01:00
sdl_v.h Remove: [Video] no longer draw in a thread 2021-03-08 19:18:55 +01:00
video_driver.cpp Add: make modal windows update more smooth 2021-03-10 13:41:18 +01:00
video_driver.hpp Add: make modal windows update more smooth 2021-03-10 13:41:18 +01:00
win32_v.cpp Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00
win32_v.h Add: Display refresh rate game option (#8813) 2021-03-09 10:22:52 +01:00