Revert "Update SteamOS GPU flags for improved compatibility"

This reverts commit e77bdfd962.
This commit is contained in:
2025-12-28 12:01:08 +13:00
parent 7d210f528b
commit a95d7678c7
2 changed files with 11 additions and 10 deletions
+10 -9
View File
@@ -61,18 +61,19 @@ if (process.platform === 'linux') {
console.log(`[GPU] SteamOS/Gamescope DETECTED: ${detectionReason}`); console.log(`[GPU] SteamOS/Gamescope DETECTED: ${detectionReason}`);
console.log('[GPU] Applying SteamOS-specific GPU flags for webview rendering...'); console.log('[GPU] Applying SteamOS-specific GPU flags for webview rendering...');
// SteamOS GPU flags - use ANGLE for 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-angle', 'gl'); app.commandLine.appendSwitch('use-gl', 'egl');
app.commandLine.appendSwitch('angle-platform-type', 'x11'); app.commandLine.appendSwitch('use-angle', 'default');
app.commandLine.appendSwitch('disable-gpu-compositing');
// GPU process settings
app.commandLine.appendSwitch('in-process-gpu');
app.commandLine.appendSwitch('disable-gpu-vsync'); 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');
// Feature flags // In-process GPU can help with stability on Steam Deck
app.commandLine.appendSwitch('enable-features', 'VulkanFromANGLE,UseOzonePlatform'); app.commandLine.appendSwitch('in-process-gpu');
app.commandLine.appendSwitch('disable-features', 'VizDisplayCompositor');
} else { } else {
console.log('[GPU] Standard Linux environment detected'); console.log('[GPU] Standard Linux environment detected');
+1 -1
View File
@@ -5,7 +5,7 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"start:steamos": "electron . --ozone-platform=x11 --use-angle=gl --angle-platform-type=x11 --in-process-gpu --no-sandbox --disable-dev-shm-usage --disable-features=VizDisplayCompositor", "start:steamos": "electron . --ozone-platform=x11 --disable-gpu-compositing --disable-gpu-vsync --no-sandbox --disable-dev-shm-usage --disable-features=VizDisplayCompositor",
"start:linux-safe": "electron . --disable-gpu --disable-gpu-compositing --no-sandbox", "start:linux-safe": "electron . --disable-gpu --disable-gpu-compositing --no-sandbox",
"dist": "electron-builder", "dist": "electron-builder",
"dist:appimage": "electron-builder --linux AppImage", "dist:appimage": "electron-builder --linux AppImage",