On 9 Okt., 15:24, Ben Sizer <[email protected]> wrote: > > The horizontal line is tearing, usually caused by vsync being off, as > you guessed. Sometimes you can force this in the drivers, or you might > have some luck with the wgl_swap_control extension. > (http://www.opengl.org/registry/specs/EXT/wgl_swap_control.txt) >
Hi Ben, thanks for your reply! Is there some variable I could check to determine if vsync is really on/off? > > Anyways, I´d like to get this smoother...Suggestions? > > Isn't play_frame supposed to take a dt parameter? Providing pyglet is > populating that value accurately, if you factor that into the movement > distance calculation then you may get smoother animation. Of course, play_frame() also gets a dt value. How would you use this for a smoother movement distance calculation? Is there maybe some kind of pseudo code somewhere? > 10 pixels at > a time will never look smooth, more so if the time taken to move 10 > pixels varies slightly from one occurrence to the next. Well, I tried 1 pixel at a time, but it takes forever to move the pic, even with unlimited fps... Cheers, Marc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
