I've been working on a 2D game using SDL. I've noticed the objects look blurry and glitchy when they're moving, so I was thinking about using OpenGL to render the graphics. Would this help? What are the pros and cons of using OpenGL for a 2D game?
If you're having slowdowns and glitches with SDL software rendering in a 2D game, chances are very slim that OpenGL is going to do anything for you. SDL can run 2D games quickly on a Pentium II or even lower spec machine. In other words, there are problems inherent to how you are making your draw calls. I've had no problems with speed in SDL rendering, and I've written a pure scanline renderer, which is far more intensive than working with sprites.
Two approaches I suggest:
|show 2 more comments|