fix: Disable hw acceleration across all platforms.

Fixes https://github.com/jitsi/jitsi-meet-electron/issues/458.
This commit is contained in:
Jaya Allamsetty 2020-12-03 16:38:07 -05:00 committed by Saúl Ibarra Corretgé
parent 1c53296e85
commit 73f9c6178f
1 changed files with 2 additions and 4 deletions

View File

@ -29,10 +29,8 @@ 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');
}
// We need to disable hardware acceleration because its causes the screenshare to flicker.
app.commandLine.appendSwitch('disable-gpu');
// Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
app.allowRendererProcessReuse = false;