feat: enable GPU acceleration for improved performance
All checks were successful
Build / increment-version (push) Successful in 9s
Build / build-linux (push) Successful in 2m10s
Build / build-windows (push) Successful in 12m36s
Build / create-release (push) Successful in 1m48s

This commit is contained in:
2026-04-30 18:39:30 +10:00
parent fd25143489
commit de4f6ebbc9

View File

@@ -84,6 +84,13 @@ let apiServer = null;
// Allow audio playback without requiring a prior user gesture (needed for notification sounds)
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');
// Enable GPU acceleration
app.commandLine.appendSwitch('ignore-gpu-blocklist');
app.commandLine.appendSwitch('enable-gpu-rasterization');
app.commandLine.appendSwitch('enable-zero-copy');
app.commandLine.appendSwitch('enable-webgl');
app.commandLine.appendSwitch('enable-accelerated-2d-canvas');
// Set app name for notifications and system tray
app.setName('Paarrot');