Cleanup in prep for tiled raytracing.