Casting large numbers of rays

Hi, sorry for the delayed reply.
Essentially the algorithm is

for i=1 to nReflections
for j=1 to nRays
Cast (launch) the ray
If the ray does not escape then
update ray origin to hit point, direction to reflected direction
endif
end loop
end loop