GIF image takes a lot of CPU

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

GIF image takes a lot of CPU

Postby triathlete23 » Thu Oct 05, 2017 7:19 am

Hello. In our app WPF we use CefSharp. When we open the browser with an image .GIF or a video that is looped, it takes 20-40% of CPU. Could you advise some solutions for this? Or maybe we have to wait new release version of CefSharp?
triathlete23
Newbie
 
Posts: 1
Joined: Thu Oct 05, 2017 7:13 am

Re: GIF image takes a lot of CPU

Postby HarmlessDave » Thu Oct 05, 2017 5:58 pm

Have you looked at CPU usage in Google Chrome? (Show all processes, it is probably in one of the tab processes not the main appplication.)

This is probably the Chromium engine not anything in CEF or CEFSharp.

Chromium has poor logic for some image decoding. It decodes images to full uncompressed size with 32 bits per pixel. A 13 mega-pixel camera image will use 1 GB of RAM in a Google tab while it is being decoded, even if the display size is 100 x 100.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 110 guests