I know that the latest CUDA support recursion.
I am just having concern whether it’s very expansive in terms of performance.
I have a whitted style ray tracer.
And when a ray hits glass surface, I need to spawn both reflected and refracted rays. This can easily be handled with recursion, otherwise I will have to manually build a traverse stack.
So, does using recursive calls hurt peformance?