5 ms·
Precisely. QuickTime on Macs can use hardware-based video decompression. If Apple allowed browser plugins to move video-decompression out of the CPU too, then t
by jdowdell 17y ago
Precisely. QuickTime on Macs can use hardware-based video decompression. If Apple allowed browser plugins to move video-decompression out of the CPU too, then that would be great.
- htsh 17y agoIs 10.1 going to use hardware on the mac? I've read conflicting reports on this.
- jdowdell 17y agoSorry, I haven't heard of any progress on this yet... here's the best current guidance I've seen: <em>"In Flash Player 10.1, H.264 hardware acceleration is not supported under either Linux or Mac OS X. Linux currently lacks a developed standard API that supports H.264 hardware video decoding, and Mac OS X does not expose access to the required APIs. The Flash Player team will continue to evaluate adding hardware acceleration to Linux and Mac OS X in future releases."</em> http://www.adobe.com/devnet/flashplayer/articles/fplayer10.1_hardware_acceleration_print.html http://www.adobe.com/devnet/flashplayer/articles/fplayer10.1...
- m_eiman 17y agoIf Apple allowed browser plugins to move video-decompression out of the CPU too, then that would be great. What prevents the plugins from using hardware? They're binaries that can run anything they want, aren't they?
- tensafefrogs 17y agoThey can, but then they have to hand the result back to the browser to render, which can be slow. Check out the new stuff coming in flash player 10.1, which will have some hardware acceleration, BUT not on OS X because it requires updated video drivers. Since Apple controls the video drivers on OS X, we just have to wait for them to update them (and since they don't seem to like Flash much, it could be a while).
- m_eiman 17y agoWell, VLC et al seem to be able to decode and play videos without a problem, and one would think that the remaining 85% of CPU would be enough to copy the decoded image data into a buffer for the browser... But I haven't tried to do it myself, maybe it's harder than it seems.
- deleted 17y ago[deleted]
- lurch_mojoff 17y agoI think that you are using this as a convenient cop out. For two reasons. First, hardware (i.e. GPU) acceleration makes a significant difference only when decoding h.264. For h.263 and On2 V6 you shouldn't need hardware acceleration. GPU accelerated h.264 came in Quicktime X in Snow Leopard and is not available on all Snow Leopard compatible machines. The disparity in performance between Quicktime, and other player-codec packages for that matter, and Flash has been around for years. The second, and more important in my opinion, reason is that Flash doesn't have performance and stability issues only when it comes to video. They are more apparent with video, but all kinds of content - games, sites, even sometimes ads - make the Flash plugin disproportionately task the system.
- tensafefrogs 17y agoYour first point doesn't make sense, considering jd said "if Apple allowed browser plugins to move video-decompression out of the CPU too, then that would be great." Flash can't use hardware acceleration until Apple adds support for it to their video drivers. Sure, it took adobe a long time to get to this point, but video online is still young compared to the lifetime of the Flash Plugin, so your argument that the plugin has been around "for years" also doesn't make much sense. I also don't agree with your second point, considering the things you are complaining about "games, sites, ads" are generally created with Flash because the advertiser (or ad agency) wants to do something that HTML can't do. It's their choice to do it, so don't blame their poor choices (and often poor coding) on the technology. Consider that in general games and rich interactive things take more CPU than static HTML and graphics, so of course it will take more CPU to render those things. If you don't like it, don't play Flash games and boycott sites that use excessive poorly coded Flash.
- po 17y ago> Consider that in general games and rich interactive things take more CPU than static HTML and graphics, so of course it will take more CPU to render those things. If you don't like it, don't play Flash games and boycott sites that use excessive poorly coded Flash. There are Javascript/CSS demos out there that are much more dynamic/interactive than the average Flash based ad that still use less CPU. In a similar vein, there are other Safari plugins out there that do much more than the average Flash based ad that use less CPU. The Flash plugin uses more resources than people expect it to based on their experience with Flash in Windows, as well as their experience with other technologies on Safari/OS X. I don't think it is a collective hallucination. Flash on OS X could be better.
- demallien 17y agoI often see this claim made on the Net, and it is always quickly followed by someone saying that it's a load of rubbish, and that there is nothing stopping Adobe from doing harware acceleration in Safari plugins for the Mac. So, this being Hacker News, is there someone out there with some experience writing Safari plugins that can give us a definitive answer to this question (preferably with a brief description of the APIs involved). I don't think I can stand reading yet another thread on this topic which is filled with what appear to be poorly-researched assertions...