Larry Gritz <l...@...>
On Feb 4, 2010, at 11:32 AM, Christopher Kulla wrote:
My interpretation of these results is that indices always win - unlessSpans only beat indices if there are is a single large span of 1's, or a large batch that is almost all 1's. (That's most primary batches, but nothing else.)
It might be worth using indices but having anThat may be a good compromise. I think indices are a clear winner in all other cases, so perhaps this will eliminate the overhead in the few cases that spans seem to win, and then we're golden.
By the way - I don't really understand how you got any runflagI dumped out "npoints" but for the index test, only loop on [begin,end), as we do in the real shadeops. So there is no penalty for strings of 0's on either end. So primary batches (or conditional modifications to primary batches) can start with 0. Non-conditional secondary batches always start with 1 (because of the way our renderer sends them to OSL).