diff options
author | Jaya Allamsetty <54324652+jallamsetty1@users.noreply.github.com> | 2020-12-02 17:50:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 23:50:56 +0100 |
commit | f3481522429fbfe18007e9082334fc56555323a9 (patch) | |
tree | f13a1ad1200136828eced2088bfe0b2ae75aba09 | |
parent | 6d4f997c87697264842ccaf1b309dcb67a444ca6 (diff) |
fix: Disable hardware acceleration on Windows, it causes screenshare to flicker
-rw-r--r-- | main.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -29,6 +29,11 @@ const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS) || (process.argv.indexO // We need this because of https://github.com/electron/electron/issues/18214 app.commandLine.appendSwitch('disable-site-isolation-trials'); +// We need to disable hardware acceleration on Windows because its causes the screenshare to flicker. +if (process.platform === 'win32') { + app.commandLine.appendSwitch('disable-gpu'); +} + // Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580 app.allowRendererProcessReuse = false; |