[SDL] ingame "GUI" using SDL and SDL with OpenGL question

Andrew Ford andrewhford at yahoo.com
Wed Jul 17 17:12:01 PDT 2002


I think the best you can do when you have to change
the texture is to do a glTexSubImage2D on an existing
texture object (like reusing a surface).

Andrew

--- Sam Lantinga <slouken at devolution.com> wrote:
> > First the issue. Based upon the test/testgl.c
> example source I've implented
> > OpenGL
> > 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% ~
> > 20%),
> > and that's on my AMD Athlon Classic 650, 512MB RAM
> and a nvidia Geforce
> > 3Ti500
> > 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.
> 
> See ya,
> 	-Sam Lantinga, Software Engineer, Blizzard
> Entertainment
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com




More information about the SDL mailing list