mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map
This commit is contained in:
parent
7f6d9d8c11
commit
cfcf3159b2
@ -21,6 +21,7 @@
|
||||
#include "../network/network.h"
|
||||
#include "../functions.h"
|
||||
#include "../thread/thread.h"
|
||||
#include "../genworld.h"
|
||||
#include "sdl_v.h"
|
||||
#include <SDL.h>
|
||||
|
||||
@ -572,7 +573,7 @@ void VideoDriver_SDL::MainLoop()
|
||||
}
|
||||
|
||||
/* End of the critical part. */
|
||||
if (_draw_threaded) {
|
||||
if (_draw_threaded && !IsGeneratingWorld()) {
|
||||
_draw_mutex->SendSignal();
|
||||
} else {
|
||||
/* Oh, we didn't have threads, then just draw unthreaded */
|
||||
|
Loading…
Reference in New Issue
Block a user