mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 08:57:57 +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
|
// window control from renderer uses preload -> ipcMain above
|
||||||
|
|
||||||
// ---------- bootstrap ----------
|
// ---------- 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();
|
const gotLock = app.requestSingleInstanceLock();
|
||||||
if (gotLock) {
|
if (gotLock) {
|
||||||
app.on("second-instance", () => {
|
app.on("second-instance", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user