From 5f5eee3ed8ba009308fd70b515f511cec24670da Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:51:18 -0700 Subject: [PATCH] Enable GPU use on Linux --- app/main.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/main.ts b/app/main.ts index 0dc0ccd35a..9476b8950c 100644 --- a/app/main.ts +++ b/app/main.ts @@ -206,9 +206,6 @@ const defaultWebPrefs = { enablePreferredSizeMode: true, }; -const DISABLE_GPU = - OS.isLinux() && !process.argv.some(arg => arg === '--enable-gpu'); - const DISABLE_IPV6 = process.argv.some(arg => arg === '--disable-ipv6'); const FORCE_ENABLE_CRASH_REPORTS = process.argv.some( arg => arg === '--enable-crash-reports' @@ -1982,12 +1979,6 @@ if (OS.isLinux()) { app.commandLine.appendSwitch('gtk-version', '3'); } -// rendering is often utterly broken on Linux when using GPU -// acceleration. -if (DISABLE_GPU) { - app.disableHardwareAcceleration(); -} - // This has to run before the 'ready' event. electronProtocol.registerSchemesAsPrivileged([ { @@ -2796,7 +2787,7 @@ ipc.on('get-config', async event => { proxyUrl: process.env.HTTPS_PROXY || process.env.https_proxy || undefined, contentProxyUrl: config.get('contentProxyUrl'), sfuUrl: config.get('sfuUrl'), - reducedMotionSetting: DISABLE_GPU || animationSettings.prefersReducedMotion, + reducedMotionSetting: animationSettings.prefersReducedMotion, registrationChallengeUrl: config.get('registrationChallengeUrl'), serverPublicParams: config.get('serverPublicParams'), serverTrustRoot: config.get('serverTrustRoot'),