Using SwapBuffers() with multiple OpenGL canvases and vertical sync?
问题 I have a GUI written using wxPython that contains two GLCanvas es, a 'display' canvas and a 'preview' canvas onto which I am drawing some very simple geometry using PyOpenGL. The 'preview' and 'display' canvases display the contents of the same framebuffer: I need both of these canvases to be updated synchronously at a consistent framerate with no tearing. So far I have just been calling self.SetCurrent() # draw stuff... self.SwapBuffers() for both the preview and display canvases within my