Changeset - r13296:62e0b8be9897
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-10-19 20:32:05
rubidium@openttd.org
(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/sdl_v.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)