added hardware accel flags
This commit is contained in:
parent
4abae9c708
commit
05df122cf1
3 changed files with 29 additions and 6 deletions
|
@ -37,7 +37,7 @@
|
||||||
"@typescript-eslint/parser": "^7.2.0",
|
"@typescript-eslint/parser": "^7.2.0",
|
||||||
"@vencord/types": "^0.1.2",
|
"@vencord/types": "^0.1.2",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"electron": "^29.1.1",
|
"electron": "29.1.6",
|
||||||
"electron-builder": "^24.13.3",
|
"electron-builder": "^24.13.3",
|
||||||
"esbuild": "^0.20.1",
|
"esbuild": "^0.20.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
|
|
|
@ -37,8 +37,8 @@ devDependencies:
|
||||||
specifier: ^16.4.5
|
specifier: ^16.4.5
|
||||||
version: 16.4.5
|
version: 16.4.5
|
||||||
electron:
|
electron:
|
||||||
specifier: ^29.1.1
|
specifier: 29.1.6
|
||||||
version: 29.1.1
|
version: 29.1.6
|
||||||
electron-builder:
|
electron-builder:
|
||||||
specifier: ^24.13.3
|
specifier: ^24.13.3
|
||||||
version: 24.13.3(electron-builder-squirrel-windows@24.13.3)
|
version: 24.13.3(electron-builder-squirrel-windows@24.13.3)
|
||||||
|
@ -1974,8 +1974,8 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/electron@29.1.1:
|
/electron@29.1.6:
|
||||||
resolution: {integrity: sha512-cXN15NgCi7MkzGo5/23ZQbii+0UfhmUiDjACunmzcUofYCjF42XhFbL7JZnwgI0qtBCCeJU8qZNZt9lU91gUFw==}
|
resolution: {integrity: sha512-UIYfpHR9gRBFKHyejHuXUVQ7nNzZRnoPVOHlijkvqR+DSLwgJ2ZcVVt0LNduNeO8PhPkY1+6kHonL52OTC1cOw==}
|
||||||
engines: {node: '>= 12.20.55'}
|
engines: {node: '>= 12.20.55'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
|
|
@ -34,7 +34,30 @@ function init() {
|
||||||
|
|
||||||
// work around chrome 66 disabling autoplay by default
|
// work around chrome 66 disabling autoplay by default
|
||||||
app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
|
app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
|
||||||
|
app.commandLine.appendSwitch(
|
||||||
|
"enable-features",
|
||||||
|
"UseOzonePlatform,VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiVP8Encoder,VaapiVP9Encoder,VaapiAV1Encoder,WebRTCPipeWireCapturer,VaapiVideoDecoder,CanvasOopRasterization,Vulkan"
|
||||||
|
);
|
||||||
|
app.commandLine.appendSwitch("use-vulkan");
|
||||||
|
app.commandLine.appendSwitch("use-gl", "angle");
|
||||||
|
app.commandLine.appendSwitch("use-angle", "gl");
|
||||||
|
app.commandLine.appendSwitch("enable-gpu-rasterization");
|
||||||
|
app.commandLine.appendSwitch("enable-gpu");
|
||||||
|
app.commandLine.appendSwitch("enable-unsafe-webgpu");
|
||||||
|
app.commandLine.appendSwitch("enable-oop-rasterization");
|
||||||
|
app.commandLine.appendSwitch("enable-native-gpu-memory-buffers");
|
||||||
|
app.commandLine.appendSwitch("enable-accelerated-video");
|
||||||
|
app.commandLine.appendSwitch("enable-zero-copy");
|
||||||
|
app.commandLine.appendSwitch("ignore-gpu-blocklist");
|
||||||
|
app.commandLine.appendSwitch("ozone-platform-hint", "wayland");
|
||||||
|
// WinRetrieveSuggestionsOnlyOnDemand: Work around electron 13 bug w/ async spellchecking on Windows.
|
||||||
|
// HardwareMediaKeyHandling,MediaSessionService: Prevent Discord from registering as a media service.
|
||||||
|
//
|
||||||
|
// WidgetLayering (Vencord Added): Fix DevTools context menus https://github.com/electron/electron/issues/38790
|
||||||
|
app.commandLine.appendSwitch(
|
||||||
|
"disable-features",
|
||||||
|
"WinRetrieveSuggestionsOnlyOnDemand,HardwareMediaKeyHandling,MediaSessionService,WidgetLayering,UseChromeOSDirectVideoDecoder"
|
||||||
|
);
|
||||||
// WinRetrieveSuggestionsOnlyOnDemand: Work around electron 13 bug w/ async spellchecking on Windows.
|
// WinRetrieveSuggestionsOnlyOnDemand: Work around electron 13 bug w/ async spellchecking on Windows.
|
||||||
// HardwareMediaKeyHandling,MediaSessionService: Prevent Discord from registering as a media service.
|
// HardwareMediaKeyHandling,MediaSessionService: Prevent Discord from registering as a media service.
|
||||||
//
|
//
|
||||||
|
|
Reference in a new issue