Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF Glitchy Rendering #2811

Closed
AlaaAlHallaq opened this issue Jun 13, 2019 · 7 comments
Closed

WPF Glitchy Rendering #2811

AlaaAlHallaq opened this issue Jun 13, 2019 · 7 comments
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. wpf

Comments

@AlaaAlHallaq
Copy link

Using CefSharp.WPF.Example to open web page with transparent background result in 2 things

  1. Glitchy rendering.
  2. Slow Scrolling.

please try opening the html 5 video test page from wpf sample:
https://tekeye.uk/html/html5-video-test-page

Thanks

@amaitland
Copy link
Member

It's important to note that CefSharp is just a wrapper around the Chromium Embedded Framework (CEF). Closing this as upstream and as changes need to be made in CEF.

The CEF project has it's own issue tracker located at https://bitbucket.org/chromiumembedded/cef it is recommended you ask on https://magpcss.org/ceforum/index.php before opening an issue on the CEF issue tracker. The behavior you are seeing may be the expected default.

Before opening a new issue you should:

If you do find an existing issue that matches this one or create a new one then post a link here for others to follow.

@amaitland
Copy link
Member

The OffScreen rendering engine is being rewritten you can track the progress at https://bitbucket.org/chromiumembedded/cef/issues/2575/viz-implementation-for-osr

@amaitland amaitland added the upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. label Jun 13, 2019
@AlaaAlHallaq
Copy link
Author

AlaaAlHallaq commented Jun 13, 2019

@amaitland The issue is only appearing in CefSharp.WPF & CefSharp.WPF.Exmaple, neither CefSharp.WinForms.Example doen't nor CEF samples (CefClient,CefSample) have this issue.

@amaitland
Copy link
Member

WinForms uses native rendering, entirely different. cefsimple doesn't support OffScreen rendering, so it's not an accurate comparison.

You didn't use the bug report template provided at https://github.com/cefsharp/CefSharp/blob/master/.github/ISSUE_TEMPLATE/bug_report.md#bug-report No mention of testing performed. No reference to cefclient being tested. As a result you get a saved response. This issue in all likelihood is still going to be a problem with CEF and it's OSR implementation.

You must test with cefclient --multi-threaded-message-loop --off-screen-rendering-enabled --enable-gpu Making sure to compare the exact same version of cefclient.

If the issue only reproduces with a transparent background then you'll have to factor that into your testing of cefclient.

@amaitland
Copy link
Member

Testing with http://opensource.spotify.com/cefbuilds/cef_binary_75.0.6%2Bg90ecd35%2Bchromium-75.0.3770.80_windows32_client.tar.bz2 using cefclient --multi-threaded-message-loop --off-screen-rendering-enabled --enable-gpu and I see that scrolling is problematic and there's problems rendering the videos.

Adding --disable-gpu-compositing (as I've suggested in other cases like #2802 (comment)) and rendering greatly improves.

Best to report the issue on https://bitbucket.org/chromiumembedded/cef

@ilkayayas
Copy link

Here is the solution I used;

    public App()
    {
        CefSettings settings = new CefSettings();
        settings.SetOffScreenRenderingBestPerformanceArgs();

        Cef.Initialize(settings);
    }

@kani-rifluxyss
Copy link

This one did NOT work for me,

settings.SetOffScreenRenderingBestPerformanceArgs();

used these 2 lines and it is working!

cefSettings.CefCommandLineArgs.Add("disable-gpu", "1");
cefSettings.CefCommandLineArgs.Add("disable-gpu-compositing", "1");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. wpf
Projects
None yet
Development

No branches or pull requests

4 participants