Refresh rate in fullscreen modes

Hello, All!

I am thinking about refresh rates in fullscreen modes. It must be supported
in any way in any form in SDL. So there is two available options:

  1. Add a special API function

    1a) function like SDL_SetVideoMode, but with the refresh rate argument.
    Need also to add function to obtain current refresh rate, etc.
    1b) function like SDL_SetRefreshRate(Hz), for all further global
    operations (looks like env. variable, but it is easy to use).

  2. Do it thru the environment variables, like other things similar to that.

Most operation systems/GUIs have default refresh rates for each resolution
mode, but for example QNX6 have not this feature, it have support of
changing resolution mode and refresh rates to almost any value, but no
defaults. So it would be nice to have an API function for that or
"standartized" env. variable to override default refresh rate.

I’m planning to add this possibility in QNX6 driver soon, but as env.
variable, so maybe someone already thinked about this and have more or less
"standartized" env. variable name for this purpose ? :wink: Any suggestions ?

Thanks !

With best regards, Mike Gorchak. E-mail: @Mike_Gorchak

1b) function like SDL_SetRefreshRate(Hz), for all further global

operations (looks like env. variable, but it is easy to use).

I’ve implemented SDL_SetRefreshRate in the local SDL hack for StepMania.
It’s only implemented for Windows. I’ve intended to send a patch for
this, but I’ve been too busy; if you want to pull it out and try to get
it applied, feel free: the code’s in the CVS tree under
http://sf.net/projects/stepmania in src/SDL-1.2.6.

Note that it’s not perfect. There’s no way to find out the available
refresh rates for a given configuration. I’m not sure if it works for
the DirectX end; I only use the WinDIB driver.

  1. Do it thru the environment variables, like other things similar to that.

Configuring graphics settings for apps with environment variables is
ugly. It’s disgusting that the only way I can find to control vsync in
X is through env vars …On Thu, Dec 04, 2003 at 01:36:36PM +0200, Mike Gorchak wrote:


Glenn Maynard