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/cocoa
Patric Stout 4610aa7ae3 Remove: [Video] no longer draw in a thread
Drawing in a thread is a bit odd, and often leads to surprising
issues. For example, OpenGL would only allow it if you move the
full context to the thread. Which is not always easily done on
all OSes.
In general, the advise is to handle system events and drawing
from the main thread, and do everything else in other threads.
So, let's be more like other games.

Additionally, putting the drawing routine in a thread was only
done for a few targets.

Upcoming commit will move the GameLoop in a thread, which will
work for all targets.
3 years ago
..
CMakeLists.txt Add: [OSX] OpenGL video driver. 3 years ago
cocoa_keys.h Fix: VkMapping declarations violated C++ ODR rule. 3 years ago
cocoa_ogl.h Add: Option to (dis-)allow accelerated video drivers. (#8819) 3 years ago
cocoa_ogl.mm Fix #8808: [OSX, OpenGL] Crash on switching blitters due to double-mapping the video buffer. 3 years ago
cocoa_v.h Add: Option to (dis-)allow accelerated video drivers. (#8819) 3 years ago
cocoa_v.mm Remove: [Video] no longer draw in a thread 3 years ago
cocoa_wnd.h Add: [OSX] OpenGL video driver. 3 years ago
cocoa_wnd.mm Fix #8808: [OSX, OpenGL] Crash on switching blitters due to double-mapping the video buffer. 3 years ago