diff options
author | Stan Seibert <stan@mtrr.org> | 2011-08-14 21:05:07 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-08-14 21:05:07 -0400 |
commit | 2d7220415ec99a80a794f6c642d6e14de8481945 (patch) | |
tree | 9ad4d2a847efffdd9e34562f56fe63ff3e25a119 /src/kernel.cu | |
parent | 9d61786d403a340d5ceb88b1c565cf0362c00580 (diff) | |
download | chroma-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/kernel.cu')
0 files changed, 0 insertions, 0 deletions