Update GPU flags for SteamOS and improve updater logging

Adjusted GPU command line switches for better SteamOS/Gamescope compatibility, including switching to egl-angle and refining feature flags. Improved auto-updater logger setup with error handling to avoid issues in unsupported environments.
This commit is contained in:
2025-12-28 11:52:54 +13:00
parent 9898d8248e
commit 541c974397
+17 -10
View File
@@ -62,17 +62,17 @@ if (process.platform === 'linux') {
console.log('[GPU] Applying SteamOS-specific GPU flags for webview rendering...'); console.log('[GPU] Applying SteamOS-specific GPU flags for webview rendering...');
// Critical flags for SteamOS/Gamescope 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('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-compositing');
app.commandLine.appendSwitch('disable-gpu-vsync'); app.commandLine.appendSwitch('disable-gpu-vsync');
app.commandLine.appendSwitch('disable-accelerated-2d-canvas'); app.commandLine.appendSwitch('disable-software-rasterizer');
app.commandLine.appendSwitch('use-gl', 'desktop'); app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor,UseChromeOSDirectVideoDecoder');
app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor'); app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform,Vulkan');
app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform');
app.commandLine.appendSwitch('enable-unsafe-swiftshader');
// Additional flags that help with AMD GPU under Gamescope // In-process GPU can help with stability on Steam Deck
app.commandLine.appendSwitch('disable-background-networking');
app.commandLine.appendSwitch('in-process-gpu'); app.commandLine.appendSwitch('in-process-gpu');
} else { } else {
console.log('[GPU] Standard Linux environment detected'); console.log('[GPU] Standard Linux environment detected');
@@ -643,9 +643,16 @@ app.whenReady().then(() => {
}); });
// --- Auto-Updater Setup --- // --- Auto-Updater Setup ---
// Configure auto-updater logging // Configure auto-updater logging (safely - may not be available in all environments)
autoUpdater.logger = require('electron-updater').autoUpdater.logger; try {
if (autoUpdater.logger) autoUpdater.logger.transports.file.level = 'info'; 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);
}
// Check for updates after a short delay to not block startup // Check for updates after a short delay to not block startup
setTimeout(() => { setTimeout(() => {