diff options
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index 8306a8a63a7..7b325d51787 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -2270,6 +2270,7 @@ static int do_write_image_or_movie(Render *re, Main *bmain, Scene *scene, bMovie char name[FILE_MAX]; RenderResult rres; Object *camera = RE_GetCamera(re); + double render_time; int ok = 1; RE_AcquireResultImage(re, &rres); @@ -2353,11 +2354,17 @@ static int do_write_image_or_movie(Render *re, Main *bmain, Scene *scene, bMovie RE_ReleaseResultImage(re); + render_time = re->i.lastframetime; + re->i.lastframetime = PIL_check_seconds_timer() - re->i.starttime; + BLI_timestr(re->i.lastframetime, name); printf(" Time: %s", name); - + BLI_callback_exec(G.main, NULL, BLI_CB_EVT_RENDER_STATS); + BLI_timestr(re->i.lastframetime - render_time, name); + printf(" (Saving: %s)\n", name); + fputc('\n', stdout); fflush(stdout); /* needed for renderd !! (not anymore... (ton)) */ |