Refresh rate?

I notice SDL_VideoInfo has no field for refresh rate. Although the user
might know what refresh rate the current desktop video mode is running at,
it would be nice to know what refresh rate(s) a particular fullscreen mode
has available.

Or maybe I can approximate with a bunch of SDL_Flips over a measurable time
interval (say 1 second)? How good could this approximation be if the video
mode isn’t accelerated or something else could cause the SDL_Flip itself to
be delayed to take longer than the refresh? (or is SDL_Flip guaranteed to
take less time than one monitor refresh???)

Thanks in advance!–

Olivier A. Dagenais - Software Architect and Developer

I notice SDL_VideoInfo has no field for refresh rate. Although the user
might know what refresh rate the current desktop video mode is running at,
it would be nice to know what refresh rate(s) a particular fullscreen mode
has available.

the refresh rate isn’t always available. The usual solution is to make your
game independent of the refresh rate as far as possible and just depend on
timing (this will help for targets which cannot synch to vertical refresh)

for some uses (mainly emulators) it would be useful to request a particular
refresh rate. I wouldn’t mind having that in the next development branch

SDL_SetVideoMode chooses a low refresh rate (appears to be 60 Hz) for full
screen windows. SDL_ListModes and SLD_GetVideoInfo don’t support refresh rate
requests.

How can I create a full-screen window with a high refresh rate?

-m=====
Morgan McGuire
@Morgan_McGuire


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

hmm…
I suppose you have WinXP…
It is a Microsoft WinXP problem but it is a problem…

How can we fix it?> ----- Original Message -----

From: morgan3d@yahoo.com (Morgan McGuire)
To:
Sent: Monday, June 30, 2003 8:01 PM
Subject: [SDL] Refresh rate?

SDL_SetVideoMode chooses a low refresh rate (appears to be 60 Hz) for full
screen windows. SDL_ListModes and SLD_GetVideoInfo don’t support refresh
rate
requests.

How can I create a full-screen window with a high refresh rate?

-m

=====
Morgan McGuire
morgan3d at yahoo.com


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SDL_SetVideoMode chooses a low refresh rate (appears to be 60 Hz) for full
screen windows. SDL_ListModes and SLD_GetVideoInfo don’t support refresh rate
requests.

How can I create a full-screen window with a high refresh rate?

What platform are you running on?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

i think the winXP refresh rate prob occures only with the nvidia detonator
drivers.
but theres a registry entry fix available.

i think you can get it from www.rivastation.com
s> ----- Original Message -----

From: cham_gss@hotmail.com (Chameleon)
To:
Sent: Monday, June 30, 2003 9:30 PM
Subject: Re: [SDL] Refresh rate?

hmm…
I suppose you have WinXP…
It is a Microsoft WinXP problem but it is a problem…

How can we fix it?

----- Original Message -----
From: “Morgan McGuire”
To:
Sent: Monday, June 30, 2003 8:01 PM
Subject: [SDL] Refresh rate?

SDL_SetVideoMode chooses a low refresh rate (appears to be 60 Hz) for
full

screen windows. SDL_ListModes and SLD_GetVideoInfo don’t support
refresh
rate

requests.

How can I create a full-screen window with a high refresh rate?

-m

=====
Morgan McGuire
morgan3d at yahoo.com


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Would it break compatibility to add two functions to SDL ?

SDL_SetRefreshrate and SDL_GetRefreshrate

SDL_SetRefreshrate (100);
screen = SDL_SetVideoMode (…);
actualrate = SDL_GetRefreshrate ();

CU

“Sam Lantinga” schrieb im Newsbeitrag news:mailman.1057022494.24080.sdl at libsdl.org…> > SDL_SetVideoMode chooses a low refresh rate (appears to be 60 Hz) for full

screen windows. SDL_ListModes and SLD_GetVideoInfo don’t support refresh rate
requests.

How can I create a full-screen window with a high refresh rate?

What platform are you running on?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment