adds condition to pause rendering and render on demand for gl view