[SDL] Retrace sync. in Linux
David Olofson
david at olofson.net
Thu Sep 25 11:11:01 PDT 2003
On Thursday 25 September 2003 19.34, Bob Pendleton wrote:
[...]
> > Using glSDL and enabling vsync always puts my frame rate at 60. I
> > dont know if this is because GL ignores my color depth setting
> > passed to SDL_SetVideoMode or what.
>
> When using OpenGL with SDL only the GL attributes you set have
> anything to do with the frame buffer depth. The values passed to
> SDL_SetVideoMode() are *always* ignored. Even the attributes are
> only a minimum requirement. SDL may give you any visual that has
> Attribute values equal to or greater than the attribute values.
That doesn't apply to glSDL applications, since (gl)SDL_SetVideoMode()
translates most of the relevant flags into GL attributes. glSDL
applications are not really aware that they're running on OpenGL, so
it just wouldn't work without this feature.
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
--- http://olofson.net --- http://www.reologica.se ---
More information about the SDL
mailing list