Archived

This topic is now archived and is closed to further replies.

hello_there

refresh rates

Recommended Posts

You choose the refresh rate when requesting fullscreen mode.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites

LONG ChangeDisplaySettings(
LPDEVMODE lpDevMode, // graphics mode
DWORD dwflags // graphics mode options
);

typedef struct _devicemode {
...
DWORD dmDisplayFrequency;
...
} DEVMODE;

dmDisplayFrequency:
Specifies the frequency, in hertz (cycles per second), of the display device in a particular mode. This value is also known as the display device''s vertical refresh rate. Display drivers use this member. It is used, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member.
When you call the EnumDisplaySettings function, the dmDisplayFrequency member may return with the value 0 or 1. These values represent the display hardware''s default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use display functions such as ChangeDisplaySettings.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
EXT_swap_control == Turn off VSYNC == let it run as fast as it can == GOOD

You really don''t want TO lock the framerate...
Locked framerates == LAWSUITS !

Share this post


Link to post
Share on other sites
You can have the app set the refresh rate, just ask the OS what refresh rates the monitor can do, at worse you'll get standard 60hz across the board if the user doesnt have the correct driver or fiddled their setup. Also all monitors i've come across since 1998 turn themselves off when windows asks 'em to do a refresh rate they cant handle to prevent damage. Infact, the only monitor i've had which didnt support that feature was a 14inch one from 1996!

Vsync off != GOOD!!!
The ONLY good reason to force vsync off is profiling, by all means give a user the option to turn it off if they want, however with it off you get tearing off the image and an overall degregation of experiance.

And how on earth did you work out that locked framerates = lawsuits???

[edited by - _the_phantom_ on October 10, 2003 5:18:38 PM]

Share this post


Link to post
Share on other sites
i never said anything about locking the frame rate. it's just i want to be able to change the refresh rate cause me monitor it on 75 on the desktop and it changes tp 60 when i load my programe and it's annoying me cause i have to change the channel on my monitor because the screen goes funny otherwise.

[edited by - hello_there on October 10, 2003 9:15:28 PM]

Share this post


Link to post
Share on other sites
also isn''t it good to turn Vsync on because if you get a to high frame rate it can start going a bit jumpy. because it happens in my programe. but with Vsync on it doesn''t.

Share this post


Link to post
Share on other sites