the sync takes care that the opengl only draws when needed