From cfcf3159b2a4c20f2457c1ac360139c18617b93d Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 19 Oct 2009 20:32:05 +0000 Subject: (svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map --- src/video/sdl_v.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 1cb6d828b..15c3ef37d 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -21,6 +21,7 @@ #include "../network/network.h" #include "../functions.h" #include "../thread/thread.h" +#include "../genworld.h" #include "sdl_v.h" #include @@ -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 */ -- cgit v1.2.3-70-g09d2