Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2013-03-27 14:05:31 +0400
committerTon Roosendaal <ton@blender.org>2013-03-27 14:05:31 +0400
commit93d5e106aac81fb1054d8ba0502f8d336f29b2c5 (patch)
tree671f069f19d3678303412fdde1117dbbd50d3d84 /source/blender/render
parentda4401587c8087174f1cffa22475ff1bac027295 (diff)
Fix for timing print in renders.
The time it was printing was excluding the time spent on color and file saving. Now it includes this too, plus it prints the time spent on color/files. Makes quite a difference when you do sequencer conversions or grading in terminals - time that was printed was very misleading. For readablity of logs, also added an extra empty line after this print.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/pipeline.c9
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)) */