From 8470f6d34843e3fc79018fa4f8c73ee208f47328 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 19 Nov 2007 00:05:53 +0000 Subject: [PATCH] Sometimes render artifacts only appear when rendering tile by tile. Added environment variable SYNFIG_DISABLE_TILE_RENDER which when set will prevent the tile renderer from being used. The workarea won't display piece by piece, but will update all at once, possibly slowly when set. git-svn-id: http://svn.voria.com/code@1157 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/workarea.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index dc8b12d..8b77f93 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -2242,8 +2242,11 @@ studio::WorkArea::async_update_preview() // Create the render target handle target; - if(w*h>(low_resolution?480*270:480*270/2)) + // if we have lots of pixels to render and the tile renderer isn't disabled, use it + if(w*h>(low_resolution?480*270:480*270/2) && + !getenv("SYNFIG_DISABLE_TILE_RENDER")) { + // do a tile render handle trgt(new class WorkAreaTarget(this,w,h)); trgt->set_rend_desc(&desc); @@ -2252,6 +2255,7 @@ studio::WorkArea::async_update_preview() } else { + // do a scanline render handle trgt(new class WorkAreaTarget_Full(this,w,h)); trgt->set_rend_desc(&desc); -- 2.7.4