Automatic fallback to software rendering
-
Some users try to run my QML application on non-ideal hardware - i.e. without appropriate graphics hardware/drivers. What usually happens is that I get a report that the app flashed up with a white screen and then crashed almost immediately. I then get them to try running with the environment variable to turn on software rendering and it usually works for them.
Ideally I would like to be able to detect this situation automatically, and turn on software rendering for the user, perhaps displaying a warning in the GUI that software rendering is being used.
Is there any way that I can do this? The only thought I had was to run with
QSG_INFO
set and then try to parse the output. However, I don't know if there is anything I can reliably look for in there.