# HG changeset patch # User rubidium # Date 2009-10-19 20:32:05 # Node ID 62e0b8be9897799d765eb006eb5be9b56971d679 # Parent dd56059817bc8041414e7e7bb9c27071b988916d (svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp --- 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 */