[SDL] Problem with frame rate

David Olofson david at olofson.net
Thu Mar 13 06:55:02 PST 2003


On Thursday 13 March 2003 03.09, Tyler Montbriand wrote:
[...]
> > Of course, I agree with David: OpenGL.
>
> OpenGL is nice - when it's there.  Software rendering when not,
> isn't quite as nice. Not compiling at all 'cause it isn't on your
> target platform's even not-nicer.  I'm gonna try exploring things
> with glsdl;  mebbe, using clever #ifdefs, it's possible to use it
> only when it's available?

The #ifdefs are already there; you just need to add OpenGL detection 
to your build scripts. (Look at Kobo Deluxe for an example.)

It would be more interesting to load OpenGL dynamically. Then binaries 
compiled with OpenGL support would run on systems without OpenGL as 
well. (glSDL just refuses to enable OpenGL rendering, as if you had 
left out the SDL_GLSDL flag.) Currently, I have to build a separate 
non-OpenGL version of Kobo Deluxe, or people w/o OpenGL can't even 
load the binary.


//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---





More information about the SDL mailing list