Render scene only when is needed.