From a582eec640ff183b2b8cfd621d4cbd305a18d278 Mon Sep 17 00:00:00 2001 From: kaitlynkittyy Date: Sat, 13 Apr 2024 23:49:14 -0400 Subject: [PATCH] fixed hw accel flags --- src/main/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 6608e45..325d417 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -27,10 +27,12 @@ process.env.VENCORD_USER_DATA_DIR = DATA_DIR; function init() { const { disableSmoothScroll, hardwareAcceleration } = Settings.store; - if (hardwareAcceleration === false) app.disableHardwareAcceleration(); - if (hardwareAcceleration === true) { + if (hardwareAcceleration === false) { + app.disableHardwareAcceleration(); + } else { app.commandLine.appendSwitch("enable-features", "VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiVideoDecoder"); } + if (disableSmoothScroll) { app.commandLine.appendSwitch("disable-smooth-scrolling"); }