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"); }