summaryrefslogtreecommitdiffstats
path: root/tests/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-20 22:39:41 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-20 22:43:17 -0400
commit9cc3fef27ba1c23b2b935b6f81cf15dc9159fe3a (patch)
treef31cf4d59c104fff165177b4881175bf77b03aba /tests/libdimension
parent5c9680634b2999afdf43eaef5f367e98d3888f96 (diff)
downloaddimension-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 'tests/libdimension')
-rw-r--r--tests/libdimension/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libdimension/prtree.c b/tests/libdimension/prtree.c
index da69b97..cb36153 100644
--- a/tests/libdimension/prtree.c
+++ b/tests/libdimension/prtree.c
@@ -80,7 +80,7 @@ main(void)
dmnsn_new_vector(0.0, 0.0, 1.0)
);
- if (!dmnsn_prtree_intersection(prtree, ray, &intersection)) {
+ if (!dmnsn_prtree_intersection(prtree, ray, &intersection, true)) {
fprintf(stderr, "--- Didn't find intersection! ---\n");
return EXIT_FAILURE;
}