Add functionallity allowing to recover from too high hardware utilization setting
The newly added hardware utilization modes are awesome, but the setting is saved across devices. Therefore, when switching the client device the previously set high hardware utilization might be too high for the device making wk crash.
Detailed Description
Let's develop a feature that allows the user to recover from such a WebGL context loss error, by adding e.g. a button to the error toast that auto reduces the hardware utilization and then reloads wk. Other user interactions could be implemented as well. The toast interaction was just my initial idea.
Context
- [ ] Specific to long-running jobs (set
jobsEnabled=trueinapplication.conf) - [ ] Specific to webknossos.org (set
isDemoInstance=trueinapplication.conf)
- See eg. this bug report: https://discuss.webknossos.org/t/gpu-error-on-ipad/1864/6
@daniel-wer Did your recent changes to to the shader compilation not cover this issue as well? I was under the impression that WK resets to a default hardware utilization in case it crashes.
I only added, that interpolation is disabled in case of a webgl context loss, because that'll lead to an easier to compile shader. Resetting the hardware utilization as well should be a quick change, though.