add the ability to pause opengl rendering on demand