Closed Beastmaster closed 1 year ago
You should set the RTC_INTERSECT_CONTEXT_FLAG_COHERENT flag only when the rays are really coherent, thus for primary rays typically. Can you try removing that RTC_INTERSECT_CONTEXT_FLAG_COHERENT flag for the rtcIntersect1M invokation?
I removed "RTC_INTERSECT_CONTEXT_FLAG_COHERENT" but latency were similar. I may missunderstand the meaning of "coherent" because my rays are scattering. I tried to group "coherent" rays and did see some speed-up. Thanks very much!
I'm comparing the 2 ways of ray tracing. But I found
rtcOccluded1M
is 3x slower thanrtcIntersect1
.rtcIntersect1 code
rtcOccluded1M code
Did I miss anything?
Thank you!