From: Chris Norman Date: Thu, 26 Nov 2009 05:48:52 +0000 (-0800) Subject: Enabling dooglus' single threaded renderer workaround as default for windows to impro... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1fa3eea69cdaf4a0260ff01b443007b4a27d1d4b;p=synfig.git Enabling dooglus' single threaded renderer workaround as default for windows to improve stability. Also needs addition of CPPFLAGS="-DSINGLE_THREADED $CPPFLAGS" to synbuild.conf --- diff --git a/synfig-studio/src/gtkmm/app.cpp b/synfig-studio/src/gtkmm/app.cpp index 06671f9..79f9948 100644 --- a/synfig-studio/src/gtkmm/app.cpp +++ b/synfig-studio/src/gtkmm/app.cpp @@ -1786,7 +1786,7 @@ App::reset_initial_window_configuration() synfigapp::Main::settings().set_value("pref.distance_system","pt"); synfigapp::Main::settings().set_value("pref.use_colorspace_gamma","1"); #ifdef SINGLE_THREADED - synfigapp::Main::settings().set_value("pref.single_threaded","0"); + synfigapp::Main::settings().set_value("pref.single_threaded","1"); #endif synfigapp::Main::settings().set_value("pref.restrict_radius_ducks","0"); synfigapp::Main::settings().set_value("pref.resize_imported_images","0"); diff --git a/synfig-studio/src/gtkmm/asyncrenderer.h b/synfig-studio/src/gtkmm/asyncrenderer.h index 6678e4e..7d865fd 100644 --- a/synfig-studio/src/gtkmm/asyncrenderer.h +++ b/synfig-studio/src/gtkmm/asyncrenderer.h @@ -43,8 +43,10 @@ /* === M A C R O S ========================================================= */ -// uncomment to use a single thread, and hopefully get more stability -// #define SINGLE_THREADED +// uncomment define SINGLE_THREADED to use a single thread, and hopefully get more stability (dooglus) - changed to be default if using windows (Nov 2009 pixelgeek) +#ifdef WIN32 +#define SINGLE_THREADED +#endif #ifdef SINGLE_THREADED # define single_threaded() App::single_threaded #endif