Hi!
First, great job with CefGlue! Thanks!
Second, I have few questions about rendering browser window. My understanding is:
CefGlue.WindowsForms:
- It uses Native window rendering
- The CefWebBrowser is a System.Windows.Forms.Control,
- the CefwebBrowser controls Handle is passed to CEF to render the content there
CefGlue.WPF:
- It uses offscreen rendering
- The WpfCefBrowser is System.Windows.Controls.ContentControl
- The content is written into a WriteableBitmap
My application is basically a game, rendering to a canvas, using javascript. My client app in WPF, so I'm using the WpfCefBrowser. The problem is that it has serious performance problems. I have the following questions:
1, During tweaking the command line switches, using these I gained some performance:
commandLine.AppendSwitch("--disable-accelerated-2d-canvas");
Any idea why?
2, With the Winforms control it is much faster, is it because that it uses the underlying native window rendering? (of couse I didn't disable the 2d canvas hw acceleration with the winforms control)
3, Is it possible to create a WPF control with native window rendering? If not, why? Using the WriteableBitmap was because of limitation of WPF? I know that I can use WinForms controls in WPF, but I'm interested in is it possible?
Thanks!
Balazs