Better profiling code for LBVH example (thanks ddemidov)