mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-07-01 05:46:36 -04:00
618b51b1b12695aace2b53ded88d41e7856d2029

When the alpha channel is used in a color palette, the code now replaces the blue channel in the accumulation buffer with a pair of two U16s, which encode the values of the blue and alpha channels as a fraction of the value of the density. When the alpha channel is always 1.0, the blue channel works as normal. Density is now always the last element in the accumulation buffer. Eliminating the separate IO operations improved total runtime by more than 30% on my card, while the extra calculations reduced that to 20% when alpha was present (though that can be optimized further).
Description
Languages
Python
92.8%
Cuda
6%
Shell
0.6%
C
0.6%