PDA

View Full Version : Faster SDL blits


gardon
11-19-2006, 01:32 PM
I made a simple demo to show what I mean. My FPS on my machine is around 180, but the ball is still very fuzzy as it moves around.

It's in a zip file, with an executable here:

http://geocities.com/gardon11111/Debug.zip

Any ideas what to do? Or should I switch to openGl/directx

SamuraiCrow
11-19-2006, 05:38 PM
If you set up SDL to use an OpenGL context you can use a wrapper like hxRender (http://joel.longanecker.googlepages.com/hxRender) to convert all of the blits to OpenGL and not have to convert the rest of your sound-handling, graphics loading, etc. from SDL to something else as you switch platforms from one to the next. :cool:

gardon
11-19-2006, 05:49 PM
Excellent, thank you

zdax
11-29-2006, 06:53 AM
maybe you should use double buffering to get more stable movement.