On Oct 9, 11:50 am, sticksen <[email protected]> wrote: > > I mean computational efficiency. I posted a vid at > youtube:http://www.youtube.com/watch?v=OoP9L3JCv7I > It´s a small bit, which moves new pics onto the screen, like a > transition in Keynote, Powerpoint would. As you can see, it´s not > quite supersmooth and there´s always an annoying horizontal line, > maybe vsync missing?
Well, you can't really 'move' anything when you look at the low level graphics system - you repaint the whole scene each time with everything in its new position. Whether that means blitting things explicitly at a new location on the screen or using glTranslate to move the vertices or the camera doesn't really matter as the end code is the same - everything is drawn each time. 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) > 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. 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. -- Ben Sizer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
