I installed the ATI Catalyst Control Center, enabled vsync from there. It seems to store its configuration in /etc/ati/amdpcsdb. The WINDOW_SET_VSYNC shows no tearing.
I don't think the following is Pyglet's fault, since I see it on glxgears too, but for the record... Fullscreen windows still show a single tear about 1/4 down from the top of the screen. It is present on every frame and is extremely noticeable, both for alternating background colors and for moving polygons. I'll keep checking out my driver and X config. On Jun 24, 6:04 pm, Tartley <[EMAIL PROTECTED]> wrote: > Thanks once again for the assists, Alex. > > As you anticipated, the WINDOW_SET_VSYNC test shows that vsync is not > being honoured. (that's a cool test - much clearer than squinting at > moving polygons like I was trying to do.) I'll look around in my > driver / X config, see if there's anything I can do about that. > > I'll play with the window invalidation mechanism you outline, see what > happens. > > Many thanks, > > Jonathan > > On Jun 23, 6:06 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote: > > > On Tue, Jun 24, 2008 at 7:11 AM, Tartley <[EMAIL PROTECTED]> wrote: > > > > Hey Alex, > > > > Thanks heaps for the response. > > > > I've tried that out, and am now using the exact canonical 'hello > > > world' example, cut and paste from the programming guide, and it does > > > help, but I'm still very confused. > > > > My 'update' function now gets called every 33 to 37ms, no matter what > > > happens. This is not quite the 30fps I asked for, but is much > > > improved, and is unaffected by mouse events. > > > > However, on_draw() gets called at 45 to 55 fps, and this rises to > > > 120fps when I move the mouse. So many of my calls to on_draw() are > > > redundant (drawing the same thing as last frame) > > > pyglet assumes that the window needs to be repainted after any event, > > including mouse events. You can override this by setting > > window.invalid=False during your on_draw() handler. This prevents > > on_draw being called again until invalid is set to True (for example, > > during your update() function). This is a > > new/experimental/undocumented feature. > > > > I am still seeing tearing. > > > Try: > > > python tests/test.py WINDOW_SET_VSYNC > > > which should make it abundantly clear whether or not your video card > > supports vsync. > > > Alex. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
