(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map

This commit is contained in:
rubidium 2009-10-19 20:32:05 +00:00
parent 7f6d9d8c11
commit cfcf3159b2

View File

@ -21,6 +21,7 @@
#include "../network/network.h" #include "../network/network.h"
#include "../functions.h" #include "../functions.h"
#include "../thread/thread.h" #include "../thread/thread.h"
#include "../genworld.h"
#include "sdl_v.h" #include "sdl_v.h"
#include <SDL.h> #include <SDL.h>
@ -572,7 +573,7 @@ void VideoDriver_SDL::MainLoop()
} }
/* End of the critical part. */ /* End of the critical part. */
if (_draw_threaded) { if (_draw_threaded && !IsGeneratingWorld()) {
_draw_mutex->SendSignal(); _draw_mutex->SendSignal();
} else { } else {
/* Oh, we didn't have threads, then just draw unthreaded */ /* Oh, we didn't have threads, then just draw unthreaded */