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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-02-21 15:29:27 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-02-21 15:30:29 +0300
commit888d81018548eab1b33b5a6811f55f0b8b3c1749 (patch)
tree9b42eb9fb3b79f2dad7fd2a964a79bf796bf41c2 /intern/cycles/blender/blender_sync.cpp
parenta97bc1bedf6fa63cbafbc9f004f9a6c8f472ae44 (diff)
Cycles: Use lower progressive update timeout for preview rendering
This ways previews are refreshing with the same ratio as job was expecting this to happen, giving more instant feedback on the changes.
Diffstat (limited to 'intern/cycles/blender/blender_sync.cpp')
-rw-r--r--intern/cycles/blender/blender_sync.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp
index fe33ccbc6c1..985a3cd3d5a 100644
--- a/intern/cycles/blender/blender_sync.cpp
+++ b/intern/cycles/blender/blender_sync.cpp
@@ -554,6 +554,13 @@ SessionParams BlenderSync::get_session_params(BL::RenderEngine b_engine,
b_engine.support_display_space_shader(b_scene);
}
+ if(b_engine.is_preview()) {
+ /* For preview rendering we're using same timeout as
+ * blender's job update.
+ */
+ params.progressive_update_timeout = 0.1;
+ }
+
return params;
}