LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on August 02, 2006, 14:44:35

Title: How to find a usable pixelformat?
Post by: elias4444 on August 02, 2006, 14:44:35
I really like forcing at bit of anti-aliasing on the user if I know their system can handle it - I just like knowing that they're having a certain level of visual quality when playing my games. I noticed though, that when I specify:
PixelFormat(displayBPP,8,16,8,4)
Some older graphic chips just can't handle it. Now, I know how to find the best number of colors possible (displayBPP), but how to find the best case scenarios for the other numbers?
Title: How to find a usable pixelformat?
Post by: darkprophet on August 03, 2006, 13:00:51
The problem with enumerating over a list of PixelFormats is that you might force the Gfx to use a format that isn't quite suited for that card and you end up with bad performance.

The solution is to catch the LWJGLException and attempt to re-create the display with a different format (i.e. one without FSAA).

DP