summaryrefslogtreecommitdiff
path: root/test/test_bvh_simple.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2012-02-17 18:26:41 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:38 -0700
commitcc386a0dbad610f4c2ed6a79ed1cfc2af57aade3 (patch)
tree017fb4cc93f526dfc61951f282fb9f26526fd478 /test/test_bvh_simple.py
parente2bf16de5d94a7b438e9c1af52f0bb4dc632b35f (diff)
downloadchroma-cc386a0dbad610f4c2ed6a79ed1cfc2af57aade3.tar.gz
chroma-cc386a0dbad610f4c2ed6a79ed1cfc2af57aade3.tar.bz2
chroma-cc386a0dbad610f4c2ed6a79ed1cfc2af57aade3.zip
Add an argsort_direction() function to chroma.tools and use it to
group photons so that they take similar paths on the GPU. argsort_direction() morton-orders an array of normalized direction vectors according to their spherical coordinates. Photons sorted in this way tend to follow similar paths through a detector geometry, which enhances cache locality. As a result, get_node() uses the GPU L1 cache again, with good results.
Diffstat (limited to 'test/test_bvh_simple.py')
0 files changed, 0 insertions, 0 deletions