[SDL] SDL_UpdateRect(s) and animation

benang at cs.its.ac.id benang at cs.its.ac.id
Sun Oct 1 20:12:34 PDT 2006


Hi again, in my current application the animation is done by calling these
procedures:
1. Blit the whole background
2. Blit the sprites
3. Flip the surface
4. For the next frame --> loop to no 1

Well, the application runs fast enough in my PC. But when I run it in an
embedded platform called EPIA Mini ITX, it lags a lot. Maybe it's because
of my way of doing the animation, or maybe it's because I load all the
approx. 200 megs of bitmap surfaces in the memory. In a recent message in
this mailing list, there's been a discussion about doing animation with
SDL_UpdateRect(s). How do I do that? Is there any example for this kind of
animation system?

Thanks in advance.





More information about the SDL mailing list