However, I'm having major performance issues where the chromium instance seems to be running at full 50fps internally but onPaint is called much slower.
I've tried:
- Code: Select all
command_line->AppendSwitch("off-screen-rendering-enabled");
command_line->AppendSwitchWithValue("off-screen-frame-rate", "50");
command_line->AppendSwitch("disable-gpu");
command_line->AppendSwitch("enable-media-stream");
Without any difference.
Using:
- Code: Select all
command_line->AppendSwitch("disable-gpu-compositing");
Causes an assertion error with "texture_id_".
Using
- Code: Select all
command_line->AppendSwitch("enable-begin-frame-scheduling");
Doesn't render anything at all.
Any suggestions?
Here is the relevant source code, if that helps: https://gist.github.com/ronag/80fddb2fe4307d06eb27 https://gist.github.com/ronag/1ba7e36b743a5c2b218f