From 3a551867aa06da0f347a39fcf585b28161560694 Mon Sep 17 00:00:00 2001 From: Andrew Zambazos Date: Sun, 28 Dec 2025 12:01:11 +1300 Subject: [PATCH] Revert "Update GPU flags for SteamOS and improve updater logging" This reverts commit 541c974397ed4d01ac4af08d04b7031ade994cb3. --- main.js | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/main.js b/main.js index c6b1939..c4fe527 100644 --- a/main.js +++ b/main.js @@ -62,17 +62,17 @@ if (process.platform === 'linux') { console.log('[GPU] Applying SteamOS-specific GPU flags for webview rendering...'); // Critical flags for SteamOS/Gamescope webview rendering - // SteamOS only supports egl-angle, NOT desktop GL app.commandLine.appendSwitch('ozone-platform', 'x11'); - app.commandLine.appendSwitch('use-gl', 'egl'); - app.commandLine.appendSwitch('use-angle', 'default'); app.commandLine.appendSwitch('disable-gpu-compositing'); app.commandLine.appendSwitch('disable-gpu-vsync'); - app.commandLine.appendSwitch('disable-software-rasterizer'); - app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor,UseChromeOSDirectVideoDecoder'); - app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform,Vulkan'); + app.commandLine.appendSwitch('disable-accelerated-2d-canvas'); + app.commandLine.appendSwitch('use-gl', 'desktop'); + app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor'); + app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform'); + app.commandLine.appendSwitch('enable-unsafe-swiftshader'); - // In-process GPU can help with stability on Steam Deck + // Additional flags that help with AMD GPU under Gamescope + app.commandLine.appendSwitch('disable-background-networking'); app.commandLine.appendSwitch('in-process-gpu'); } else { console.log('[GPU] Standard Linux environment detected'); @@ -643,16 +643,9 @@ app.whenReady().then(() => { }); // --- Auto-Updater Setup --- - // Configure auto-updater logging (safely - may not be available in all environments) - try { - const updaterLogger = require('electron-updater').autoUpdater.logger; - if (updaterLogger && updaterLogger.transports && updaterLogger.transports.file) { - autoUpdater.logger = updaterLogger; - autoUpdater.logger.transports.file.level = 'info'; - } - } catch (e) { - console.log('[AutoUpdater] Logger setup skipped:', e.message); - } + // Configure auto-updater logging + autoUpdater.logger = require('electron-updater').autoUpdater.logger; + if (autoUpdater.logger) autoUpdater.logger.transports.file.level = 'info'; // Check for updates after a short delay to not block startup setTimeout(() => {