Jump to content


Faster SDL blits


3 replies to this topic

#1 gardon

    Valued Member

  • Members
  • PipPipPip
  • 282 posts

Posted 19 November 2006 - 09: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...11111/Debug.zip

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

#2 SamuraiCrow

    Senior Member

  • Members
  • PipPipPipPip
  • 459 posts

Posted 20 November 2006 - 01:38 AM

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:

#3 gardon

    Valued Member

  • Members
  • PipPipPip
  • 282 posts

Posted 20 November 2006 - 01:49 AM

Excellent, thank you

#4 zdax

    New Member

  • Validating
  • PipPip
  • 10 posts

Posted 29 November 2006 - 02:53 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users