Improve handling of offscreen objects.