is it possible to detect software mode?

Started by NateS, December 03, 2012, 22:07:19

Previous topic - Next topic

NateS

When using org.lwjgl.opengl.Display.allowSoftwareOpenGL=true, is it possible to detect if software mode is being used?

kappa

Don't think there is a LWJGL API or method (without going native) to detect software mode. In any event its a hopelessly useless mode anyway and provides no practical performance (hence its disabled by default).

NateS

It seems some GPUs may not be detected correctly:
https://github.com/libgdx/libgdx/issues/997

As it is now, I can enable software mode but I have no way of warning the user why they may be seeing poor performance. I think the way to go is what the TWL Theme Editor does:
http://hg.l33tlabs.org/twlthemeeditor/file/tip/src/de/matthiasmann/twlthemeeditor/Main.java#l179