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

相关文章:

  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-05-16
  • 2021-11-27
猜你喜欢
  • 2021-06-14
  • 2021-07-02
  • 2021-11-17
  • 2021-11-02
  • 2021-07-16
  • 2021-06-23
  • 2021-09-25
相关资源
相似解决方案