LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: mot on July 31, 2006, 13:40:28

Title: Highest possible frequency for fullscreen
Post by: mot on July 31, 2006, 13:40:28
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?
Title: Highest possible frequency for fullscreen
Post by: napier on July 31, 2006, 14:03:46
You can get the current display mode:

DisplayMode currentDM = Display.getDisplayMode();


if you want to check the frequency:

currentDM.getFrequency()
Title: Highest possible frequency for fullscreen
Post by: mot on August 01, 2006, 16:22:24
Thanks, that's great. For some reason I had the impression that I could use the Display functions only after opening my own window.