From b6c331ec41a1788c39606b9c398a25f801bacb4a Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 31 Jan 2008 14:12:46 +0000 Subject: [PATCH] Improve the logic for when to use the tile renderer. At lower resolutions we can hold off using it longer. git-svn-id: http://svn.voria.com/code@1533 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/workarea.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index f436f91..5cd526d 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -2266,9 +2266,9 @@ studio::WorkArea::async_update_preview() handle target; // if we have lots of pixels to render and the tile renderer isn't disabled, use it - int div = 1 << lowrespixel; - if(w*h>(low_resolution?480*270:480*270/div) && - !getenv("SYNFIG_DISABLE_TILE_RENDER")) + int div; + div = low_resolution ? (1 << lowrespixel) : 1; + if (w*h > 240*div*135*div && !getenv("SYNFIG_DISABLE_TILE_RENDER")) { // do a tile render handle trgt(new class WorkAreaTarget(this,w,h)); -- 2.7.4