optimization in AccelN, exiting occluded loop if already found a hit