[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.



hello,

Seems the SDL Overlay can support more modes than is exposed in pygame
at the moment.  Including some packed yuv modes, that might be useful
for the movie & camera modules.

pygame Overlay docs:
    http://pygame.org/docs/ref/overlay.html

SDL Overlay docs:
    http://sdl.beuc.net/sdl.wiki/SDL_Overlay

format descriptions:
    http://www.fourcc.org/indexyuv.htm





On Sat, May 30, 2009 at 2:26 PM, René Dudfield <renesd@xxxxxxxxx> wrote:
> 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,
>>
>