From de4f6ebbc9a9a36471b388c660f03358e58a09f9 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Thu, 30 Apr 2026 18:39:30 +1000 Subject: [PATCH] feat: enable GPU acceleration for improved performance --- electron/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/electron/main.js b/electron/main.js index 44eb8fa..284b4af 100644 --- a/electron/main.js +++ b/electron/main.js @@ -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');