Faster SDL blits

F69b3a361c26467022ed3c31589d2bfa
0
gardon 101 Nov 19, 2006 at 21:32

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

3 Replies

Please log in or register to post a reply.

B7dcbc0c0f07253f25ff5c25fe38c081
0
SamuraiCrow 101 Nov 20, 2006 at 01:38

If you set up SDL to use an OpenGL context you can use a wrapper like 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:

F69b3a361c26467022ed3c31589d2bfa
0
gardon 101 Nov 20, 2006 at 01:49

Excellent, thank you

27b2b627b23d6e7f4c8929d0ee650c8c
0
zdax 101 Nov 29, 2006 at 14:53

maybe you should use double buffering to get more stable movement.