webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Add functionallity allowing to recover from too high hardware utilization setting

Open MichaelBuessemeyer opened this issue 1 year ago • 2 comments

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=true in application.conf)
  • [ ] Specific to webknossos.org (set isDemoInstance=true in application.conf)
  • See eg. this bug report: https://discuss.webknossos.org/t/gpu-error-on-ipad/1864/6

MichaelBuessemeyer avatar Oct 22 '24 13:10 MichaelBuessemeyer

@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.

hotzenklotz avatar Nov 25 '25 14:11 hotzenklotz

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.

daniel-wer avatar Nov 25 '25 16:11 daniel-wer