Unsolved QWebEngineView CPU and GPU usages are extremely high
I got an animated web page developed with Cocos2d from my workmate.
I use the Qt demo project “simplebrowser” to test the web page. When the page is loaded and stable,
CPU and GPU usages are extremely high.
But if I open the page in Chrome, the performance is normal.
I tested three versions of Qt(I only need 32bit):
- Qt 5.7.1 msvc 2013 32bit
- Qt 5.8.0 msvc 2015 32bit
- Qt 5.12.3 msvc 2017 32bit
They all showed the same performance(High CPU and GPU).
- CPU: Intel Core i5-4590 3.3GHz
- Graphics Card：NVIDIA GeForce GT 710
- Memory: 8G
Chrome 96.0.4664.45 （64 bit）：
How can I reduce the CPU and GPU usages? Are there some configurations I can set?
some env varibales which come to mind you can try:
only when using QML:
are you testing release builds?!
@raven-worx Thank you for reply. Release version has the same performance. The configurations you recommended are not working.
After testing, for my case, it is mainly caused by the frame rate of the cocos2d-js web page. The default frame rate is 60. I changed it to 30 for either canvas or webgl render mode. The usages of CPU and GPU dropped significantly.