diff options
author | Thomas Dinges <blender@dingto.org> | 2015-02-18 03:12:53 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2015-02-18 03:14:59 +0300 |
commit | bd921686432af13b568a80defeae3d95ff9f22c8 (patch) | |
tree | 2579a3d33ffb5b6903073a054da0f257e04694bd /intern/cycles/bvh/bvh.h | |
parent | 5eecfbd980eb6d48e78e44854efeb98114cf4434 (diff) |
Cycles / BVH: Remove unused temp copy of prim_object.
This will save some memory during BVH Build.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r-- | intern/cycles/bvh/bvh.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h index d0b0ebe206a..40f039541eb 100644 --- a/intern/cycles/bvh/bvh.h +++ b/intern/cycles/bvh/bvh.h @@ -111,7 +111,7 @@ protected: void pack_instances(size_t nodes_size); /* for subclasses to implement */ - virtual void pack_nodes(const array<int>& prims, const BVHNode *root) = 0; + virtual void pack_nodes(const BVHNode *root) = 0; virtual void refit_nodes() = 0; }; @@ -126,7 +126,7 @@ protected: RegularBVH(const BVHParams& params, const vector<Object*>& objects); /* pack */ - void pack_nodes(const array<int>& prims, const BVHNode *root); + void pack_nodes(const BVHNode *root); void pack_leaf(const BVHStackEntry& e, const LeafNode *leaf); void pack_inner(const BVHStackEntry& e, const BVHStackEntry& e0, const BVHStackEntry& e1); void pack_node(int idx, const BoundBox& b0, const BoundBox& b1, int c0, int c1, uint visibility0, uint visibility1); @@ -147,7 +147,7 @@ protected: QBVH(const BVHParams& params, const vector<Object*>& objects); /* pack */ - void pack_nodes(const array<int>& prims, const BVHNode *root); + void pack_nodes(const BVHNode *root); void pack_leaf(const BVHStackEntry& e, const LeafNode *leaf); void pack_inner(const BVHStackEntry& e, const BVHStackEntry *en, int num); |