Toggle path tracing in GUI. Log how long it takes to generate the kd-tree.