mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-19 16:39:15 +00:00
fix(gui): re-enable hardware acceleration — remove blanket disableHardwareAcceleration()
This commit is contained in:
@ -649,12 +649,6 @@ ipcMain.handle("shell:openPath", (_, p) => {
|
||||
// window control from renderer uses preload -> ipcMain above
|
||||
|
||||
// ---------- bootstrap ----------
|
||||
// Defensive GPU handling: Electron's Chromium GPU process is a frequent
|
||||
// source of hard crashes (SIGSEGV) on Linux, especially on hybrid-GPU and
|
||||
// Wayland setups. The GUI host is an LLM management shell — a software
|
||||
// renderer is perfectly fine. Must run before app.whenReady.
|
||||
app.disableHardwareAcceleration();
|
||||
|
||||
const gotLock = app.requestSingleInstanceLock();
|
||||
if (gotLock) {
|
||||
app.on("second-instance", () => {
|
||||
|
||||
Reference in New Issue
Block a user