Page 1 of 1

Sluggish performance on branch 2704/Win32

PostPosted: Fri Jul 29, 2016 4:12 pm
by callum
I recently updated the the version of CEF I build against from 2526 to 2704 (Win32).

My use case renders content offscreen and uses it as an OpenGL texture.

I grab pixels via CefRenderHandler::OnPaint() and regularly call CefDoMessageLoopWork() to move things along.

After the update I notice that content is updated much less frequently - YouTube appears to play at 0.5 Hz for example.

CefCLient behaves as expected even when I force off screen rendering.

Does anyone know offhand what changed between 2526 and 2704 that might cause these issues.

Re: Sluggish performance on branch 2704/Win32

PostPosted: Fri Jul 29, 2016 4:17 pm
by magreenblatt
You should use the same command-line flags that cefclient uses: https://bitbucket.org/chromiumembedded/ ... wser.cc-18

Re: Sluggish performance on branch 2704/Win32

PostPosted: Fri Jul 29, 2016 4:54 pm
by callum
Experimenting with copying command line flags, removing all mine, removing all of CefClients etc. didn't appear to make any difference.

One thing I notices that might be relevant based on what I saw in a comment is that WebGL is now disabled even though I explicitly enable it during setup.

Did the way those flags are used change from 2526 to 2704?

I'll continue to investigate.