diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-20 22:39:41 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-20 22:43:17 -0400 |
commit | 9cc3fef27ba1c23b2b935b6f81cf15dc9159fe3a (patch) | |
tree | f31cf4d59c104fff165177b4881175bf77b03aba /libdimension/csg.c | |
parent | 5c9680634b2999afdf43eaef5f367e98d3888f96 (diff) | |
download | dimension-9cc3fef27ba1c23b2b935b6f81cf15dc9159fe3a.tar.xz |
Cache previous intersections in dmnsn_prtree_intersection().
Due to geometric locality of rays, this provides a very large speedup for
most scenes.
Diffstat (limited to 'libdimension/csg.c')
-rw-r--r-- | libdimension/csg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/csg.c b/libdimension/csg.c index 9d02174..05f0b60 100644 --- a/libdimension/csg.c +++ b/libdimension/csg.c @@ -54,7 +54,7 @@ dmnsn_csg_union_intersection_fn(const dmnsn_object *csg, dmnsn_intersection *intersection) { dmnsn_prtree *prtree = csg->ptr; - return dmnsn_prtree_intersection(prtree, line, intersection); + return dmnsn_prtree_intersection(prtree, line, intersection, true); } /** CSG union inside callback. */ |