I am trying to calculate the points of intersection between around 4000 rays. By intersection, I mean if the closest point between two rays is smaller than a set value, that counts as an intersection.
I tried doing this by first constructing the rays as 8 sided “pillars” (ideally I would like cylinders but this pillars are good enough for my purposes.) So my acceleration structure consists of 4000 instances of these pillars. Then I launched the same 4000 rays and see where the rays and the “pillars” intersect.
The results are fine but it is slow. Using Nsight systems, it says my optixLaunch takes 15 milliseconds on a GTX2060. I already set the build options to prefer fast trace. Are there any ways to speed this up or is this the wrong approach for my problem?