Highest possible frequency for fullscreen

Started by mot, July 31, 2006, 13:40:28

Previous topic - Next topic

mot

Is it possible to get the highest possible frequency for a fullscreen graphics mode using LWJGL? I know I can get a list of all graphics modes with frequencies etc. but on my PC the list includes very high frequencies that my monitor can't really handle.

I can use 60hz as a fallback of course, but that flickers quite a lot. Would it be possible, for instance, to retrieve the frequency of the "desktop" graphics mode and find a mode with a frequency closest to that?
Tom Andrle - Catnap Games - http://www.catnapgames.com

napier

You can get the current display mode:
DisplayMode currentDM = Display.getDisplayMode();


if you want to check the frequency:

currentDM.getFrequency()
penGL/Java/LWJGL demos and code: http://potatoland.org/code/gl

mot

Thanks, that's great. For some reason I had the impression that I could use the Display functions only after opening my own window.
Tom Andrle - Catnap Games - http://www.catnapgames.com