El 10/12/2008, a las 15:40, Tristam MacDonald escribió:

> Fullscreen flickers for me as well (MacBook also), but I doubt it is a
> problem with vsync - that can cause tearing, but the flickers are  
> way, way
> slower than 30 times a second, let alone 60.
>
> My guess would be that the fullscreen blits are very slow on this  
> card,
> especially for rectangular textures (which are poorly supported by  
> this
> driver). A solution might be to modify get_texture() to use
> ARB_texture_non_power_of_two if supported (which it is on this card).

Your suggestion about the card being slow gave me the idea to scatter  
a few time.sleep(1) around the code to actually see whether the  
problem was blitting, syncing or something else.

It was actually something else. The way I tried to show the black  
cross was wrong, because I would draw it and then call flip() to show  
it. However, this meant that the cross would be shown with whatever  
stale graphic was on the video card after the previous flip().

I changed the code to first blit the current image with the cross,  
flip it, then load the second one and the flickering disappeared.  
Maybe the flicker wasn't visible in windowed modes because of how  
MacosX composes the screen and handles the flip video buffers.

Anyway, here's the diff to my previous code which eliminates the  
problem for me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: flicker.diff
Description: Binary data



Reply via email to