Skip to main content
Participant
October 5, 2014
Question

yet another high cpu using flash issue

  • October 5, 2014
  • 1 reply
  • 1755 views

Salutations. What I'm about to tell you won't come to you as a surprise as there have been many similar topics discussed here. In fact, on the first page, there were two. So let's get on with it!

hp pavillion entertainment notebook dv6 e2170ee

windows 7 64bit

6gb ram

intel core i7 cpu q 720 @ 1.60 GHz    (never overclocked. don't know how to)

nvidia geforce gt 230m

firefox is on safe mode. kind of better than regular mode.

firefox waaaay better than chrome in handling flash. haven't tried it on ie. don't want to. i left ie8 at version 8

flash hardware accelration is off

firefox hardware accelaration is on

latest flash player enabled

latest shock player enabled

latest flash director enabled

latest firefox

no idea if my vents and cooling system work properly. read several posts about this issue being related to hardware.

i have updated my drivers using hp support assistant, driver detective, and windows update. wouldn't be surprised if there was a conflict with all this nvidia driver as well. went to the site. it detected my model and sent me the driver. had audio and video options in it.

while writing this post, the adobe tab + 4 flash tabs off the same site (youtube, younow, cam sites, etc) are open.

performance tab in taskbar says

flashplayer 15 *32bit (2 processes with the same name but diff cpu usage by the way. why 2?) is using 5%

firefox *32 bit is using 5%

audiodg.exe is nowhere to be found

now firefox and flashplayer keep alternating ofcourse. flash always ends up with higher cpu when everything breaks. i have noticed that even after closing ff, ff and flash are still in the processes table. they stay there for a bit. why?

ISSUE NUMBER 1: i can't play a video and have flash players on at the same time. I'd like to watch a movie and every now and then look to my other screen to see what's going on with the flash site. it can't be done. all is well at the beginning then it goes to hell. i have the latest free version of bsplayer and videolan. Yes vlc handles better but it all goes to hell in the end. sometimes the video won't even show on vlc; only audio

ISSUE NUMBER 2: i don't understand the logic behind the increase in cpu. if i have 6 tabs open all flash all is well. but at some point it just spikes up. so i always try to keep the number of flash tabs as low as possible. sometimes 4 are no issue but 5 are a big issue. sometimes closing a tab helps and sometimes it doesnt.

ISSUE NUMBER 3: audiodg starts using more than 2%. It can go up to 11 or 13 even. That shouldn't happen. I've been told that for it to go beyond 2 or even 3 means there's a conflict. I had trouble dealing with this issue. I don't know what or where the conflict is. So if there's anyone here that's good at this please contact me. Ill post a pic of device manager. For the sound, i have 4 nvideo and 1 idt audio codec. I cdon't know which to disable or uninstall. im thinking of unintalling every audio/video driver i hav and start from the beginning. BUT LETS NOT MAKE THIS ABOUT AUDIO/VIDEO CONFLICT

QUESTION 1: was there ever a time when this issue didn't exist? perhaps there's a "stable" version of ff or flash that don't cause this.

QUESTION 2: ive seen a lot of posts about this but I honestly can't remember any participants saying OH REALLY? ODD, I NEVER HAD THIS ISSUE BEFORE

QUESTION 3: isn't there some kind of tracer that can track the moment that it goes to hell? im sure there is but no one's mentioned it so far

QUESTION 4: would buying a new laptop solve this? I'd like to think not since the issue is flash not the capabilities of a laptop but i can't help but think that a better laptop will fix this. My laptop is 4 years old.

QUESTION 5: i don't know anything about multithreading or multiple cores handling a single process but if someone showed me how, would that resolve my issue?

MY WISH: for flash to coexist peacefully with human beings

    This topic has been closed for replies.

    1 reply

    jeromiec83223024
    Inspiring
    October 5, 2014

    Disabling Hardware Acceleration in Flash means that we're doing all of the processing on the CPU, instead of on the GPU.  The GPU is purpose-built for 3D graphics and video decoding and is far more power efficient.  Decoding H.264 video in software is very CPU intensive, which is why we made the huge investment to enable hardware acceleration on the vast majority of available desktop hardware. Running six CPU intensive tasks simultaneously (which is what you're doing by using six simultaneous tabs) is unsurprisingly going to tax your machine.

    If you've disabled Hardware Acceleration because video wasn't working right or something, figuring out how to get that enabled (or moving to better hardware with good driver support) would solve the vast majority of what you're describing here.  If HP doesn't offer updated drivers, I'd recommend trying the corresponding Nvidia drivers, as OEMs aren't always motivated to pick up the latest fixes once a model is no longer generating new revenue for them.  The chipset manufacturers tend to provide longer support, but those drivers aren't officially supported by the OEM.

    The architecture for Protected Mode for Firefox is a result of the fact that we've retrofitted a modern plug-in security approach to a legacy plug-in architecture.  As you've noticed, equivalent sandboxing in other major browsers is designed into their plug-in architectures, and is therefore more efficient.  We've made huge investments to support modern security architecture and always do our best to accommodate efforts from our partners in the browser space to further secure the browser.  You can find a detailed explanation of our approach to Firefox here: Inside Flash Player Protected Mode for Firefox

    Firefox controls the instantiation and destruction of Flash instances.  You'll also notice that Firefox hangs out for a while after shutdown.  This is something that we're aware of, but it's beyond our control.

    Flash doesn't have much to do with audiodg, except for the fact that it generates sound and uses the windows sound subsystem.  This article seems to present some reasonable advice in resolving issues with high CPU consumption from the sound subsystem.  Fix Audiodg.exe High CPU Usage in Windows 7 | Windows EXE Errors

    Hardware accelerated video encoding is typically not available on consumer-grade hardware (primarily because of the difference in licensing models for encoding and decoding with popular commercial codecs), and therefore is done on the CPU.  The particular website chooses what codecs and bitrates are involved, and higher quality feed will consume more CPU.  It's also worth pointing out that not all video can be decoded in hardware.  We provide clear guidance to content providers on how to encode video so that it can be played back efficiently, it's ultimately up to the content provider to follow that advice.

    So, long story short, each tab consumes resources.  Running a single tab is going to use less resources than running multiple tabs.  The latest version of Internet Explorer does some stuff to reduce resource consumption in tabs that you're not actively looking at.  We're discussing possibilities with the Chrome folks for doing the same thing in Chromium-based browsers.  Mozilla isn't interested in investing in browser plug-ins, so we don't expect to see the necessary browser-side improvements there.  The Chrome sandboxing model is more efficient that protected mode for Firefox, so tasks that require moving a lot of data (like streaming video) may use less CPU in Chrome.

    To answer your questions specifically:

    1.) There was a time before we supported multiple tabs, webcam streaming, H.264 video decoding and modern security sandboxing.  I wouldn't recommend using those versions.

    2.) There are a few posts about this, but we have ~1.5 billion users.  The majority of the very small number of folks relative to our install base are complaining their machines are overheating, which is a symptom of an ineffective cooling system. 
         There's nothing magic about Flash that causes it to somehow superheat the CPU.

         There was a time before tabs, where people didn't normally run 5-50 browser windows.  Websites also got much more complex, and the security threats got far more serious and complex.

         Playing video as a plug-in in the browser as opposed to something like VLC is inherently less efficient, as pretty much each pixel and packet gets passed through the browser before it gets to the OS or drivers.

         All of these things require additional processing.  The resources on your computer are still finite, and there is an upper limit to the number of simultaneous tabs you can use.
         At some point, you come to a juncture where you need to decide between throwing more hardware at the problem, or using less tabs simultaneously.

         Also, most laptops have power saving CPUs, so they'll ratchet the clock speed down to save battery.  You might want to check your power settings to make sure you're running at the CPU's full capacity when plugged in.

    3.) Not that would generate anything really useful.

    4.) Possibly.  You actually already have a multi-core machine.  I think you'd get more bang for your buck by enabling hardware acceleration and switching browsers.

    5.) You already have a multi-core machine that we support.

    Your Wish: We're constantly addressing security issues identified through our own testing, emerging research and intelligence from our partners in academia, government and industry.  We're also looking for opportunities to tune the player, but the reality is that Intel, Nvidia and ATI (and a long list of others, in addition to Adobe) have tuned Flash Player extensively for their hardware.  We work closely with the Internet Explorer and Chrome teams to continue to make the Flash experience better, and are always happy to work with the Firefox team should they decide that they're interested in plug-ins and the desktop browser again.  At the end of the day, Flash is just a low-level runtime.  It's just as possible to write inefficient ActionScript as it is to write inefficient C++, and while we provide some fantastic tooling for profiling your Flash content, it's up to individual content providers to write efficient code.  It's really difficult to find opportunities to make generic optimizations that don't break a percentage of the hundreds of millions of sites published with Flash content.

    I'm actually still not clear on what the problem you're experiencing is.  All software running on your machine that's actively processing something is going to use a non-zero percentage of CPU time.  The symptoms you describe indicate that Flash consumes 5% of the CPU, which is totally reasonable.  I'm guessing that I don't have the complete story.