From 834edb94b0421e8943d0760c263e49bbc446b20c Mon Sep 17 00:00:00 2001 From: Michel Date: Sun, 7 Aug 2016 16:39:43 +0200 Subject: [PATCH] Set command-line arguments for best off-screen rendering performance This is also a workaround for the issue where CEF wouldn't render anything. --- shared/browser-app.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/browser-app.cpp b/shared/browser-app.cpp index 7e2622d37..a803eedf8 100644 --- a/shared/browser-app.cpp +++ b/shared/browser-app.cpp @@ -38,4 +38,7 @@ void BrowserApp::OnBeforeCommandLineProcessing( CefRefPtr command_line) { command_line->AppendSwitch("enable-system-flash"); + command_line->AppendSwitch("disable-gpu"); + command_line->AppendSwitch("disable-gpu-compositing"); + command_line->AppendSwitch("enable-begin-frame-scheduling"); } \ No newline at end of file