Show a gui message when graphics can't be initialized
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## What problem does this solve or what need does it fill?
When for example vulkan is not supported by the gpu or drivers are not installed bevy will currently panic with a message obscure to most users. In addition it won't be possible to see this message at all if the game was not launched in a terminal.
## What solution would you like?
Bevy should try to use a gui library like gtk to display a clear message to the user about the problem and with troubleshooting steps. As gtk may not be available, it may be a good idea to use `dlopen` to load it at runtime if an error happened. The error messages should not just be limited to failing to initialize vulkan, but any kind of failure thaf prevents showing anything on the screen. On platforms other than linux, it should preferably use the native gui library. This doesn't need dlopen of this guo library is guaranteed to exist on the respective platform.
## What alternative(s) have you considered?
Require every game developer to have their own troubleshooting guide and to deal with a lot of possibly trivially fixable issues that the average user may not find trivial.
Contributor guide
Assessment
This issue has not been assessed yet.