refresh rate?

hi, how to / can we set the refresh rate of a fullscreen opengl application?

or how to detect all available resoution and its refresh rates for fullscreen applications?

thank you very much.

this changes your main window to fullscreen at 1024x768 pixels and 85 Hz:

DEVMODE dmode;

dmode.dmSize = sizeof(DEVMODE);
dmode.dmPelsWidth = 1024;
dmode.dmPelsHeight = 768;
dmode.dmDisplayFrequency = 85;

ChangeDisplaySettings(&dmode, CDS_FULLSCREEN);

when terminating the program, you should call

ChangeDisplaySettings(0, 0);

this will restore the old display settings

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.