summaryrefslogtreecommitdiff
path: root/src/photon.h
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-14 21:05:07 -0400
committerStan Seibert <stan@mtrr.org>2011-08-14 21:05:07 -0400
commit2d7220415ec99a80a794f6c642d6e14de8481945 (patch)
tree9ad4d2a847efffdd9e34562f56fe63ff3e25a119 /src/photon.h
parent9d61786d403a340d5ceb88b1c565cf0362c00580 (diff)
downloadchroma-2d7220415ec99a80a794f6c642d6e14de8481945.tar.gz
chroma-2d7220415ec99a80a794f6c642d6e14de8481945.tar.bz2
chroma-2d7220415ec99a80a794f6c642d6e14de8481945.zip
Rewrite the color_solid function in gpu.GPU (and associated CUDA code)
to make it 100x faster. Instead of having each CUDA thread loop over the full triangle list, we give each thread a single triangle and ask it to look up the hit status and color for that triangle. The hit array and color array are small enough (approx 30,000 entries) to fit into the cache, so this goes much faster. Now the event viewer is quite snappy!
Diffstat (limited to 'src/photon.h')
0 files changed, 0 insertions, 0 deletions