Problem with QT webengine hardware acceleration
-
Hi guys, I had used qt and webengine in my project. but i found my web run slowly. i had checked my config with 'chrome://gpu', the hardware acceleration was not enable by default. my version is qt5.9.0.
how i can enable the hardware acceleration?
thanks.
-
I had resolved this problem by reading the webengine resources and understanding the usefulness of chromium command line switches. The solution is as follows:
1.I had finded that the QT resources(Src\qtwebengine\src\core\web_engine_context.cpp) have such a section as following picture shows:
This section is used to transmit the chromium command line switches into chromium browser progress .2.With the foundation of step one, i used these command lines such as "--ignore-gpu-blacklist" ,"--enable-gpu-rasterization" to my application. Then it works for me!
For your all reference.