From 131c330526f259b085b0f9227d800402c74b30ef Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 25 Feb 2014 15:21:53 +0100 Subject: [PATCH] reset statistics after a rendering when using the command line executable --- src/mitsuba/mitsuba.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mitsuba/mitsuba.cpp b/src/mitsuba/mitsuba.cpp index ecee8442..b62dde98 100644 --- a/src/mitsuba/mitsuba.cpp +++ b/src/mitsuba/mitsuba.cpp @@ -371,6 +371,8 @@ int mitsuba_app(int argc, char **argv) { thr->start(); renderQueue->waitLeft(numParallelScenes-1); + if (i+1 < argc && numParallelScenes == 1) + Statistics::getInstance()->resetAll(); } /* Wait for all render processes to finish */