[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Re: BUG: vsync doesn't work with X11 in a window - without using GL.
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Re: BUG: vsync doesn't work with X11 in a window - without using GL.
- From: René Dudfield <renesd@xxxxxxxxx>
- Date: Sat, 30 May 2009 14:26:05 +1000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 30 May 2009 00:26:08 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Zo2jL+wDxiRf/ucs6kJQ3Ff8RDws73eKu6FpkKxtCyo=; b=HeHEITPVDTSDqnDQ5lTHTY5VIsKhsBfi27V6MTtqaV7rWBqqDq+A9RkkAvAxYJj7ny 9FPh6osSnH5YekYJFHrFjLXrX1PpNCDyxfJWtCRVjb00hqAWaVDiYKfq3v2OXzDKxZEe uGjgU0YLzkhmOnrJWAo89JGps+3D75CjpKYZI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ZyUO9ob8q4owvoheEmzZBIILcwrjbH3dg7x2PyOVlSRDbzuN176S0SfpbL8bDVABD0 +vDL7P8vVDM7YaTieyToNHBpul+OcrUGS8TK3byZrSd3eQ4uheERGhDllpLz7sIqAuFJ 6XOccVXrJhizXMYPxZ1DucyrSo8ApeWvELoYU=
- In-reply-to: <64ddb72c0905292039y5a5ff75bjad130c9d4f6ae59@xxxxxxxxxxxxxx>
- References: <64ddb72c0905292039y5a5ff75bjad130c9d4f6ae59@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Apparently XVideo flips a buffer on vsync.
The SDL overlay stuff uses XVideo... so one work around is to use the
pygame.overlay module rather than using pygame.display.flip()
SDL 1.3 is apparently going to have an XVideo backend, and also has
it's opengl backend... which also lets you do vsync in a window on X.
However the Overlay workaround might be ok - need to test the performance.
Another option is to use the Lamina module which lets you draw using
pygame in software, and then it updates opengl in the background.
However that's not all that fast for some types of games.
cu,
On Sat, May 30, 2009 at 1:39 PM, René Dudfield <renesd@xxxxxxxxx> wrote:
> hi,
>
> this is more an SDL related thing, but is a common bug report, so
> it'd be cool if we could figure out a way to make it work.
>
> http://bugzilla.libsdl.org/show_bug.cgi?id=406
>
>
> cheers,
>