File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ _This release is scheduled to be released on 2024-01-01._
29
29
- Review ESLint config (#3269 )
30
30
- Updated dependencies
31
31
- Clock module: optionally display current moon phase in addition to rise/set times
32
+ - electron is now per default started without gpu, if needed it must be enabled with new env var ` ELECTRON_ENABLE_GPU=1 ` on startup (#3226 )
32
33
33
34
### Fixed
34
35
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ const Log = require("./logger");
8
8
let config = process . env . config ? JSON . parse ( process . env . config ) : { } ;
9
9
// Module to control application life.
10
10
const app = electron . app ;
11
- // If ELECTRON_DISABLE_GPU is set electron is started with --disable-gpu flag.
11
+ // Per default electron is started with --disable-gpu flag, if you want the gpu enabled,
12
+ // you must set the env var ELECTRON_ENABLE_GPU=1 on startup.
12
13
// See https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering for more info.
13
- if ( process . env . ELECTRON_DISABLE_GPU !== undefined ) {
14
+ if ( process . env . ELECTRON_ENABLE_GPU !== "1" ) {
14
15
app . disableHardwareAcceleration ( ) ;
15
16
}
16
17
You can’t perform that action at this time.
0 commit comments