Revert "Update GPU flags for SteamOS and improve updater logging"

This reverts commit 541c974397.
This commit is contained in:
2025-12-28 12:01:11 +13:00
parent a95d7678c7
commit 3a551867aa
+10 -17
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-software-rasterizer'); app.commandLine.appendSwitch('disable-accelerated-2d-canvas');
app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor,UseChromeOSDirectVideoDecoder'); app.commandLine.appendSwitch('use-gl', 'desktop');
app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform,Vulkan'); 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'); app.commandLine.appendSwitch('in-process-gpu');
} else { } else {
console.log('[GPU] Standard Linux environment detected'); console.log('[GPU] Standard Linux environment detected');
@@ -643,16 +643,9 @@ app.whenReady().then(() => {
}); });
// --- Auto-Updater Setup --- // --- Auto-Updater Setup ---
// Configure auto-updater logging (safely - may not be available in all environments) // Configure auto-updater logging
try { autoUpdater.logger = require('electron-updater').autoUpdater.logger;
const updaterLogger = require('electron-updater').autoUpdater.logger; if (autoUpdater.logger) autoUpdater.logger.transports.file.level = 'info';
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(() => {