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-04-18 00:07:22 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-18 00:07:22 +0400
commited1a08382f2b9f9d11661d2f4c68c496c49f274a (patch)
tree493b75861ce91041475ff7de0169051e43b455a1 /intern/cycles/render/object.h
parentf3f5e9553ecf43cbe19d40607ef27e0ea1a73085 (diff)
Cycles: code refactoring to deduplicate the various BVH traversal variations.
Now there is a single BVH traversal code with #ifdefs for various features. At runtime it will then select the appropriate variation to use depending if instancing, hair or motion blur is in use. This makes scenes without hair render a bit faster, especially after the minimum width feature was added. It's not the most beautiful code, but we can't use c++ templates and there were already 4 copies, adding 4 more to handle the hair case separately would be too much.
Diffstat (limited to 'intern/cycles/render/object.h')
-rw-r--r--intern/cycles/render/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h
index 9ba500ca4d6..b3ab0e93b5c 100644
--- a/intern/cycles/render/object.h
+++ b/intern/cycles/render/object.h
@@ -79,7 +79,7 @@ public:
void tag_update(Scene *scene);
- void apply_static_transforms(Scene *scene, uint *object_flag, Progress& progress);
+ void apply_static_transforms(DeviceScene *dscene, Scene *scene, uint *object_flag, Progress& progress);
};
CCL_NAMESPACE_END