[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55622] trunk/blender/source/blender/ render/intern/source/pipeline.c: Fix for timing print in renders.
Ton Roosendaal
ton at blender.org
Wed Mar 27 11:05:31 CET 2013
Revision: 55622
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55622
Author: ton
Date: 2013-03-27 10:05:31 +0000 (Wed, 27 Mar 2013)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/pipeline.c
Modified: trunk/blender/source/blender/render/intern/source/pipeline.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/pipeline.c 2013-03-27 09:57:34 UTC (rev 55621)
+++ trunk/blender/source/blender/render/intern/source/pipeline.c 2013-03-27 10:05:31 UTC (rev 55622)
@@ -2270,6 +2270,7 @@
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 @@
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)) */
More information about the Bf-blender-cvs
mailing list