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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 02:41:24 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 02:41:24 +0400
commit0309f442bb232410e4c7594fa659238bd3854127 (patch)
tree12bb9fc2ccf814c17bd1dc3befd816e2201c7c41 /intern/cycles/blender/blender_session.cpp
parent898b49f7530e860a9accc4bb5ad897d12c55ef02 (diff)
Render stats text: show elapsed time for blender internal, hide useless "Single Layer"
at the start, more clearly indicate what the render time of the last frame was, some other tweaks for consistency.
Diffstat (limited to 'intern/cycles/blender/blender_session.cpp')
-rw-r--r--intern/cycles/blender/blender_session.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/intern/cycles/blender/blender_session.cpp b/intern/cycles/blender/blender_session.cpp
index ecdc631e39a..86bdbc0749f 100644
--- a/intern/cycles/blender/blender_session.cpp
+++ b/intern/cycles/blender/blender_session.cpp
@@ -616,16 +616,22 @@ void BlenderSession::update_status_progress()
get_status(status, substatus);
get_progress(progress, total_time);
- timestatus = string_printf("Mem: %.2fM, Peak: %.2fM | ", mem_used, mem_peak);
+ timestatus = string_printf("Mem:%.2fM, Peak:%.2fM", mem_used, mem_peak);
- timestatus += b_scene.name();
- if(b_rlay_name != "")
- timestatus += ", " + b_rlay_name;
- timestatus += " | ";
+ if(background) {
+ timestatus += " | " + b_scene.name();
+ if(b_rlay_name != "")
+ timestatus += ", " + b_rlay_name;
+ }
+ else {
+ timestatus += " | ";
- BLI_timestr(total_time, time_str, sizeof(time_str));
- timestatus += "Elapsed: " + string(time_str) + " | ";
+ BLI_timestr(total_time, time_str, sizeof(time_str));
+ timestatus += "Time:" + string(time_str);
+ }
+ if(status.size() > 0)
+ status = " | " + status;
if(substatus.size() > 0)
status += " | " + substatus;