Excessive CPU usage when using YouTube/other flash based sites.

Discussion in 'MacBook Pro' started by nateo200, Jan 7, 2012.

  1. macrumors 68030

    nateo200

    Joined:
    Feb 4, 2009
    Location:
    NY State
    #1
    Lately I've had nothing but trouble with Safari and YouTube! Videos play but my CPU usage has spiked anywhere from 80-100% during even a 240p video! Its crazy! :/ I have the latest software updates too. Also I can't go full screen, only standard or large player in YouTube...not cool...anyways I posted my activity monitor screenshots of when it was happening a few minutes ago again...its just frustrating...my computer gets really slow...I mean I can encode a BluRay and work fine but YouTube makes my MBP crawl! :O Help?
     

    Attached Files:

  2. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
  3. macrumors 68040

    AlphaDogg

    Joined:
    May 20, 2010
    Location:
    Boulder, CO
    #3
    That is how flash works. It's outdated and there's nothing you can do about it. This is why HTML5 is so much better.
     
  4. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Cuidad de México
    #4
    h.264 destroys my MacBook. Hardware accelerated playback is a must unless you enjoy a molten laptop and 6200 RPM.
     
  5. macrumors 6502a

    TheJing

    Joined:
    Jun 13, 2011
    Location:
    Somewhere in Europe
    #5
    I can watch Youtube videos all day long without the computer heating up or the fans going crazy. I'm watching one as we speak and my CPU is 90% idle.
     
  6. macrumors 6502a

    Joined:
    Oct 26, 2007
    Location:
    Sydney, Australia.
    #6
    So can I, but I don't have flash installed. I find most YouTube videos have a HTML5 version.
     
  7. macrumors 6502

    Joined:
    Dec 21, 2011
    #7
    I just watched about 5 minutes worth of Will it Blend on youtube.com...activity monitor was always around 90% idle for me too...

    hmmm...how do you tell if you are watching the flash version or the html5 version?
     
  8. macrumors 6502a

    TheJing

    Joined:
    Jun 13, 2011
    Location:
    Somewhere in Europe
    #8
    If you haven't chosen to always use HTML5 when possible, you are watching the flash version which is default.
     
  9. macrumors 6502

    Joined:
    Dec 21, 2011
    #9

    Then I am watching Flash with no problems...90% idle...
     
  10. macrumors 601

    Mr. Retrofire

    Joined:
    Mar 2, 2010
    Location:
    www.emiliana.cl
    #10
    1. Quit/restart the Finder. It robs 80 percent of one core. QuickLook and other Finder processes/plugins can cause such high CPU usage.
    2. Make sure you use at least Mac OS X 10.6.3 or better 10.6.8. Mac OS X 10.6.3 includes the VDA framework, which newer versions of the Flash Player use to decode H.264 data streams (GPU hardware accelerated). Even a 9400M IGP is enough for 1080p H.264 YT-videos (tested). Video-stuttering is mostly a bandwidth problem, not a GPU problem.
    3. Make sure you have the latest Flash Player, because it supports hardware acceleration and multithreading.
    4. If you use Safari v5.x.x, go to http://youtube.com/html5 to enable the HTML5 H.264 video decoder for YT-videos within Safari. Safari uses then the GPU to decode the H.264 stream.
     
  11. macrumors 65816

    NZed

    Joined:
    Jan 24, 2011
    Location:
    Canada, Eh?
    #11
    go with Chrome if you do a lot of flash. Its so much better than Safari
     
  12. macrumors 6502

    Joined:
    Dec 21, 2011
    #12
    I tried this and no videos will load in youtube....hmmmm...turn it off and they load fine?
     
  13. macrumors 68030

    Krazy Bill

    Joined:
    Dec 21, 2011
    #13
    Nonsense. Not 100% anyway.

    There's something wrong with the OP's system.
     
  14. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #14
    It's not nonsense, and I didn't say anything about specific percentages. It's common knowledge that Flash content on websites is demanding on CPU resources.
     
  15. thread starter macrumors 68030

    nateo200

    Joined:
    Feb 4, 2009
    Location:
    NY State
    #15
    Yeah no ****! Haha I hate Flash and HTML5 is the new wave but that doesn't change anything. The fact of the matter is 3 weeks ago YouTube's flash wasn't even a blip on the radar....now it freezes my computer up? I can play 130mbps ProRes video files with FAR less lag as well as just about any other video file...it doesn't make sense. Especially since I now have 8gigs of RAM...why would going from 6gigs-8gigs make it slower? It doesn't make sense....
     
  16. macrumors 68030

    Joined:
    Oct 19, 2011
    Location:
    Switzerland
    #16
    1) Go to youtube.com/html5 and deactivate the html5 trial. That fixes the fullscreen issue

    2) Try Chrome instead of Safari.

    3) I don't know why Flash is acting up suddenly for you.
     
  17. macrumors 65816

    NZed

    Joined:
    Jan 24, 2011
    Location:
    Canada, Eh?
    #17
    This is really good for me!
     

    Attached Files:

  18. macrumors 68030

    Krazy Bill

    Joined:
    Dec 21, 2011
    #18
    Exactly. Did you even see the OP's claimed CPU load?

    No. Instead you once again chose to respond with one of your canned responses implying that all is well in Apple Land and the OP's plight is basically "in his head". :confused
     
  19. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #19
    Of course I did, and such a load under Flash is not uncommon.
    Wrong. In no way did I imply that it was "in his head" or that "all was well", which is why I posted suggestions on how to mitigate the problem, rather than say "there's nothing you can do about it" or "get used to it." My post was completely accurate and appropriate for the OP's situation.
     
  20. macrumors regular

    Joined:
    Oct 2, 2006
    Location:
    Atlanta, GA
    #20
    92 to 96% idle for me, and thats with a number of apps open and active.

    Flash can cause this, if the app is poorly written, but I am not seeing this with youtube in Safari. Bad developers need to be pointed out just as much as flash, given they cause most of the issues most people complain about. Its not all the tech. I've developed a number of apps and I've only seen high CPU usage when i used realtime 3D in full screen mode, and some videos playing full screen.
     
  21. macrumors member

    Joined:
    Jan 1, 2012
    #21
    The problem...core 2 duo. I've used both the i5 and core 2 duo mbp's and the icore handles flash and hd video without breaking a sweat.
     
  22. macrumors 68030

    Joined:
    Oct 19, 2011
    Location:
    Switzerland
    #22
    With chrome flash, I've noticed that the CPU demand is very high (20% load/80% idle on quad core i7) when part of the video is still downloading in the background. This is almost independent of the video resolution. Once the video has finished loading the CPU load goes down to 5% or less.

    Safari with html5 playback behaves much better, the load always stays around 5% or less. Unfortunately fullscreen playback is broken currently.
     
  23. macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #23
    Nothing to do with Apple land. High CPU usage when using flash can be reproduced in Win 7.
     
  24. macrumors 68030

    Joined:
    Oct 19, 2011
    Location:
    Switzerland
    #24
    Yeah, but if you look at the OPs post in detail, there are two issues:
    - significantly increased CPU load during video playback compared to the situation a few weeks ago on the same machine
    - fullscreen video playback not working

    The standard response that Flash is resource hungry is really useless here. Recommending the html5 player is also counter-productive, since this is the one that actually is responsible for breaking full-screen.

    If one does not want to take time and identify the problem of the OP, then sometimes it's better not to reply.
     
  25. macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #25
    Fair enough, but I was replying to a specific post that really needed a response. It's a disease I have.
     

Share This Page