Hello Guest

is it possible to detect software mode?

  • 2 Replies
  • 5133 Views
*

Offline NateS

  • **
  • 91
    • Esoteric Software
is it possible to detect software mode?
« on: December 03, 2012, 22:07:19 »
When using org.lwjgl.opengl.Display.allowSoftwareOpenGL=true, is it possible to detect if software mode is being used?

*

Offline kappa

  • *****
  • 1319
Re: is it possible to detect software mode?
« Reply #1 on: December 04, 2012, 10:15:01 »
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).
« Last Edit: December 04, 2012, 10:16:41 by kappa »

*

Offline NateS

  • **
  • 91
    • Esoteric Software
Re: is it possible to detect software mode?
« Reply #2 on: November 25, 2013, 09:32:08 »
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