On 8 Okt., 23:26, Luke Paireepinart <[email protected]> wrote: > Well pyglet exposes OGL to you so you could just use the OGL commands.... > but what do you mean about blit being inefficient? How so? Are you talking > about computational efficiency or your programming efficiency?
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? Anyways, I´d like to get this smoother...Suggestions? A bit of the code(here pseudo): clock.schedule (self.play_frame) clock.set_fps_limit(30) self.transx=None def play_frame(): if need_animation: #We need all power for the animation clock.set_fps_limit(0) image.blit (self.transx + x, y) #Move pic 10px to the right for each frame self.transx = self.transx + 10 if animation_end: reset_transx clock.set_fps_limit(30) that´s it, basically... 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 -~----------~----~----~----~------~----~------~--~---
