Skip to content

Commit 834edb9

Browse files
committed
Set command-line arguments for best off-screen rendering performance
This is also a workaround for the issue where CEF wouldn't render anything.
1 parent dcb39e4 commit 834edb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared/browser-app.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ void BrowserApp::OnBeforeCommandLineProcessing(
3838
CefRefPtr<CefCommandLine> command_line)
3939
{
4040
command_line->AppendSwitch("enable-system-flash");
41+
command_line->AppendSwitch("disable-gpu");
42+
command_line->AppendSwitch("disable-gpu-compositing");
43+
command_line->AppendSwitch("enable-begin-frame-scheduling");
4144
}

0 commit comments

Comments
 (0)