[SDL] ingame "GUI" using SDL and SDL with OpenGL question
slouken at devolution.com
Wed Jul 17 11:05:01 PDT 2002
> First the issue. Based upon the test/testgl.c example source I've implented
> in my projects so we can benefit from acceleration on several platforms. Yet
> the OpenGL
> implementation is a lot slower then my SDL rendering code (I'm talking 10% ~
> and that's on my AMD Athlon Classic 650, 512MB RAM and a nvidia Geforce
> 64MB videocard. On less speccy systems it gets even worse!
You're loading the surface to an OpenGL texture just once, right?
It's slower to continually upload an OpenGL texture than it is to use SDL's
2D code on most platforms. However, if you can upload the texture once and
then reuse the texture id many times, that will be very fast.
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL