[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PATCH: Add the GL_SWAP_CONTROL constant



Thanks.

Committed revision 1015.

On 5/22/07, Eyal Lotem <eyal.lotem@xxxxxxxxx> wrote:
Allow access to this constant so that pygame programs can benefit from
the swap control feature of SDL. Use via
pygame.display.gl_set_attribute(pygame.GL_SWAP_CONTROL, count) prior
to set_mode with the OPENGL flag.  count represents the minimal amount
of retraces to wait when pygame.display.flip() is used.

This allows syncing to vblank (vsync'ing) the GL Swap operation.

See SDL documentation for further details.