You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/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.
3 years ago
..
cocoa Add: Display refresh rate game option (#8813) 3 years ago
CMakeLists.txt Codechange: [SDL2] Split driver in base-part and default backend 3 years ago
allegro_v.cpp Add: Display refresh rate game option (#8813) 3 years ago
allegro_v.h Add: Display refresh rate game option (#8813) 3 years ago
dedicated_v.cpp Add: make modal windows update more smooth 3 years ago
dedicated_v.h Codechange: Use std::string in the driver and blitter selection code. 4 years ago
null_v.cpp Add: [Video] move GameLoop into its own thread 3 years ago
null_v.h Codechange: Use std::string in the driver and blitter selection code. 4 years ago
opengl.cpp Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread. 3 years ago
opengl.h Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread. 3 years ago
sdl2_default_v.cpp Add: [Video] move GameLoop into its own thread 3 years ago
sdl2_default_v.h Remove: [Video] no longer draw in a thread 3 years ago
sdl2_opengl_v.cpp Add: [Video] move GameLoop into its own thread 3 years ago
sdl2_opengl_v.h Add: [Video] move GameLoop into its own thread 3 years ago
sdl2_v.cpp Add: Display refresh rate game option (#8813) 3 years ago
sdl2_v.h Add: Display refresh rate game option (#8813) 3 years ago
sdl_v.cpp Add: [Video] move GameLoop into its own thread 3 years ago
sdl_v.h Remove: [Video] no longer draw in a thread 3 years ago
video_driver.cpp Add: make modal windows update more smooth 3 years ago
video_driver.hpp Add: make modal windows update more smooth 3 years ago
win32_v.cpp Add: Display refresh rate game option (#8813) 3 years ago
win32_v.h Add: Display refresh rate game option (#8813) 3 years ago