webGL 的3D繪畫功能非常強大,但有些CEF 是關閉此功能的
以下是開啟方法:
1)首先不要禁用GPU
//不要禁用GPU
//command_line->AppendSwitch("disable-gpu");
//command_line->AppendSwitch("disable-gpu-compositing");
2)開啟WEBGL 功能,忽略顯卡黑名單
command_line->AppendSwitchWithValue("enable-webgl", "1"); //開啟WEBGL
command_line->AppendSwitchWithValue("ignore-gpu-blacklist", "1"); //忽略顯卡黑名單
command_line->AppendSwitchWithValue("allow-file-access-from-files", "1"); //本地調試WEBGL
————————————————
版權聲明:本文為CSDN博主「清水迎朝陽」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/shuilan0066/java/article/details/83059369