Currently the code draws again after every loop. Redraw only if camera parameters are changed by the control loop