-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Electron is throwing gpu errors under some circumstances e.g. running in a docker container as mentioned here and there were already some threads in the forum about this.
To disable these errors you can add app.disableHardwareAcceleration() in electron.js or --disable-gpu in package.json.
Both variants are ugly because for automating this you can only use sed or similar tools.
So I would like to add an environment variable ELECTRON_DISABLE_GPU and add app.disableHardwareAcceleration() in electron.js only when set.
More info's to disableHardwareAcceleration:
- https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering
- https://www.electronjs.org/docs/latest/api/app#appdisablehardwareacceleration
May it is also an option to run always with app.disableHardwareAcceleration()?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels