Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ function configureGpuAccelerationSwitches() {
app.commandLine.appendSwitch("use-angle", "d3d11");
return;
}

// Linux (and other Unix): prefer EGL over GLX for better Wayland compatibility.
// Disable VAAPI — many distros ship broken drivers that cause
// "vaInitialize failed" and prevent the renderer from loading.
app.commandLine.appendSwitch("use-gl", "egl");
app.commandLine.appendSwitch("disable-features", "VaapiVideoDecoder,VaapiVideoEncoder");
}

async function logSmokeExportGpuDiagnostics() {
Expand Down
11 changes: 11 additions & 0 deletions electron/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,17 @@ export function createHudOverlayWindow(): BrowserWindow {
}, 100);
});

// Safety net: on Linux the renderer may fail to fire did-finish-load
// (e.g. GPU/VAAPI errors). Show the window after ready-to-show as fallback.
win.once("ready-to-show", () => {
setTimeout(() => {
if (!win.isDestroyed() && !win.isVisible()) {
win.show();
win.moveTop();
}
}, 500);
});

hudOverlayWindow = win;

// Reset the user's saved HUD position when displays change so the bar
Expand Down