When enter fullscreen mode, which display mode that is the best to pick?
The highest color bitdepth (bpp)? The highest refresh rate (frequency)?
For me, I pick 32 bpp, and 75Hz refresh rate.
Is it worth to stick with 32 bpp? Cos when using 16 bpp the frame rate almost twice than when using 32 bpp?
And for 75Hz refresh rate, is all monitor support it? For example my graphics card support 140Hz refresh rate, but when I set the refresh rate to 140Hz, my monitor can’t take it.
Which bpp and refresh rate is the best (the safest and optimum) to pick?
In Java2D you can get away with specifing 0hz can’t you, and let the system decide?
Really these options should be available the API user and potentially the end user/player.
Kev
what I do is create a few WindowConfiguration objects (which is just something I wrote that holds information like bpp, resolution, and refresh rate) and store them in an array in the order that I would prefer for them to be used. Then I’ve got some other code to check the availability of each configuration, if one isn’t available then it will check the next. Its a good idea to have some non-fullscreen modes towards the end of the array just in case the user’s monitor does not support fullscreen exclusive mode. If none of the modes are supported then you could default to using their current configuration. I also have a DONT_CARE option for any of the attributes (bpp, resolution, refresh rate) so that it will just use whatever is currently being used. If this is just for java2D then you would use the DisplayMode class, but I’m pretty sure youre using lwjgl/jogl/java2D so it might be good to write something like a WindowConfiguration class that all the APIs could use.
[quote] In Java2D you can get away with specifing 0hz can’t you, and let the system decide?
[/quote]
Hmm I guess so, but I don’t know whether it can or not in LWJGL.
And I pick from one of GraphicsDevice.getDisplayModes(); none of them is 0hz.
So far I sort the display mode returned from GraphicsDevice.getDisplayModes() and pick the one that has the biggest bpp and the biggest but limited to 75 hz refresh rate, it means if there is 60, 70, 75, 100, 120, 140 refresh rate, I pick 75hz (the biggest but limited to 75).
Cos my comp (monitor) can’t have 120hz and 140hz even though the graphics card support it so I better stick with the safest one.
[quote]Its a good idea to have some non-fullscreen modes towards the end of the array just in case the user’s monitor does not support fullscreen exclusive mode.
[/quote]
Yes I do have failback to windowed mode if the pc does not support fullscreen mode, but the problem is when the pc support it but the monitor not support it, it cause the game enter fullscreen mode change display mode and the monitor said something like max frequency the monitor can take, and the requested frequency, and makes the game halt, counting down to zero before it quits/crash the system.
[quote]I’m pretty sure youre using lwjgl/jogl/java2D so it might be good to write something like a WindowConfiguration class that all the APIs could use.
[/quote]
Yup but what’s the point?
I think I better sort the available display mode the graphics card support using comparator, and takes the first that I prefer most, this is what I do now.
The problem is, which one is the best to stick with? Currently I stick with the highest bpp and the highest refresh rate but limited to 75hz for safety (hmmm I have said this above :P)