using namespace synfig;
/* === M A C R O S ========================================================= */
-const unsigned int DEF_TILE_WIDTH = 64;
-const unsigned int DEF_TILE_HEIGHT= 64;
+const unsigned int DEF_TILE_WIDTH = TILE_SIZE / 2;
+const unsigned int DEF_TILE_HEIGHT= TILE_SIZE / 2;
#define SYNFIG_OPTIMIZE_LAYER_TREE 1
#ifdef _DEBUG
-#define SYNFIG_DISPLAY_EFFICIENCY 1
+// #define SYNFIG_DISPLAY_EFFICIENCY 1
#endif
/* === G L O B A L S ======================================================= */
add_tile_time+=timer();
}
tile_timer.reset();
+ signal_progress()();
}
}
if(cb && !cb->amount_complete(total_tiles,total_tiles))
curr_frame_=0;
init();
if( !init() ){
- if(cb) cb->error(_("Target initialisation failure"));
+ if(cb) cb->error(_("Target initialization failure"));
return false;
}
#ifdef SYNFIG_OPTIMIZE_LAYER_TREE
Canvas::Handle op_canvas(Canvas::create());
- optimize_layers(canvas->get_context(), op_canvas);
+ optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
context=op_canvas->get_context();
#else
context=canvas->get_context();
Canvas::Handle op_canvas(Canvas::create());
// Set the time that we wish to render
canvas->set_time(t);
- optimize_layers(canvas->get_context(), op_canvas);
+ optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
context=op_canvas->get_context();
#else
Context context;
#ifdef SYNFIG_OPTIMIZE_LAYER_TREE
Canvas::Handle op_canvas(Canvas::create());
- optimize_layers(canvas->get_context(), op_canvas);
+ optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
context=op_canvas->get_context();
#else
context=canvas->get_context();