MacRumors

macrumors bot
Original poster
Apr 12, 2001
53,423
15,154
https://www.macrumors.com/images/macrumorsthreadlogodarkd.png

Hardmac reports on a performance comparison between Mac OS X Leopard and Mac OS X Snow Leopard from Christophe Ducommun, developer of MovieGate, a video encoding and DVD creation software package. Ducommun, who is optimizing his application to take advantage of the Grand Central Dispatch and Open CL features of Snow Leopard, has found remarkable performance improvements for his software on the operating system when running on a Mac Pro.
Christophe Ducommun who keeps optimizing Snow Leopard for his application MovieGate just sent us results to illustrate how Snow Leopard can improve performance when one can make use of Grand Central and Open CL. Tests below have been performed with a Mac Pro 2007 (Quad Core 2.66 GHz with a GeForce 8800 GT).
The results include an approximately 50% increase in video encoding speed when compared to Leopard, while also reducing the CPU load during video decoding by passing some of the work to the graphics processing unit.
Snow Leopard
150 frame/s for encoding in MPEG-2
70% CPU load for decoding
130% CPU load for MPEG-2 encoding (ffmpeg)

Leopard
104 frame/s for encoding in MPEG-2
165% CPU load for decoding
100% CPU load for MPEG-2 encoding (ffmpeg)
While Ducommun's experience is relatively rare at this point due to the inability for the vast majority of applications to make such comprehensive use of Grand Central Dispatch and Open CL at this time, it highlights the potential performance gains these core technologies can bring to Mac OS X as developers begin to take advantage of them.

Article Link: Grand Central Dispatch and Open CL Bring Significant Performance Improvements for Optimized Applications
 

metrobot

macrumors newbie
Apr 27, 2005
16
0
are apple apps optimized for Snow Leopard?

I'd like to know which Apple apps are already optimized. For example, Logic 9?
 

MacsRgr8

macrumors 604
Sep 8, 2002
7,889
1,210
The Netherlands
Probably none are.

I'd like a GCD/Open CL-capable iMove, Keynote, iDVD, Handbrake, iPhoto, FCS, and Logic Studio, along with Finder.

Indeed.

You know, I would have expected either FCS 3 to arrive after the launch of Snow Leopard, and boast about how fast these apps (or at least some actions) are using GCD and OpenCL, or have a few updates for these apps to make use of these optimizations.
Strangely, nothing can be found.

Probably iLife 10 etc..?
 

Chaszmyr

macrumors 601
Aug 9, 2002
4,267
85
I desperately want GC/OpenCL optimized Handbrake, but the developers have been saying for a long time that it is probably nowhere near, and may never come at all. At first they said it was because of Handbrake being cross platform, and more recently they say that it's out of their hands and up to the people who make the encoder they use.
 

FSMBP

macrumors 68030
Jan 22, 2009
2,564
1,812
Most likely. That's why I'm not getting iLife or iWork '09. '10 will be GCD/Open CL-compatible for sure and written in 64-bit Cocoa. If not, that'd be a pretty stupid move.

I want that too, but I wouldn't bet on it - I mean, Logic 9 and FCS 3 was released a little over a month before Snow Leopard, and they weren't even optimized (Pro apps you would figure would be first in line for a rewrite).
 

Shake 'n' Bake

macrumors 68020
Mar 2, 2009
2,186
1
Albany
I want that too, but I wouldn't bet on it - I mean, Logic 9 and FCS 3 was released a little over a month before Snow Leopard, and they weren't even optimized (Pro apps you would figure would be first in line for a rewrite).

Not a surprise to me. Wouldn't you need SL to be absolutely sure the app would work? If so, then an new suite or a 3.X.0 update may be coming.
 

mdriftmeyer

macrumors 68040
Feb 2, 2004
3,356
1,069
Pacific Northwest
FFMPEG for SL

Perhaps he could take the time to work on ffmpeg and tune it to use GCD and OpenCL?

He'd see far more improvements at that level which would benefit the entire chain of execution for his product as well, not to mention we'd all benefit from an optimized ffmpeg.
 

SpinThis!

macrumors 6502
Jan 30, 2007
471
111
Inside the Machine (Green Bay, WI)
I desperately want GC/OpenCL optimized Handbrake, but the developers have been saying for a long time that it is probably nowhere near, and may never come at all. At first they said it was because of Handbrake being cross platform, and more recently they say that it's out of their hands and up to the people who make the encoder they use.
Handbrake relies on other open source projects to do the en/decoding, such as x264 and ffmpeg. So unless you want to optimize and port a Mac version with OpenCL and GrandCentral yourself don't hold your breath.

Until recently the developer API for OpenCL wasn't even available which is why you won't see it in many apps. On the GC side, now that Apple has open sourced it as libdispatch, it's entirely possible more OSes and developers will start using that. But it may take years for that to standardize and happen.

I'd imagine it may only be a matter of time before Apple updates its own Compressor to take better advantage.
 

bob_the_gorilla

macrumors member
Jun 2, 2004
78
0
Derby, UK
I desperately want GC/OpenCL optimized Handbrake, but the developers have been saying for a long time that it is probably nowhere near, and may never come at all.

To be honest, GCD isn't a big deal for Handbrake, at least on average machines. It already makes pretty canny decisions about threads.

OpenCL would bring serious gains, but we're looking to x264 for that – and they're not OS X-centric. If and when OpenCL spreads cross-platform (and GPU makers do seem keen on including it in their offerings) they'll almost certainly take more interest.
 

borcanm

macrumors regular
Nov 4, 2008
177
0
Very good news. Now if only all the apps for macs would take advantage of GCD & OCL.
 

Michael73

macrumors 65816
Feb 27, 2007
1,081
41
Heh! The guy has (almost) the same rig is me (see my sig) but I have 2x his cores :D I've been waiting for this type of confirmation ever since GSD and OpenCL technologies were announced. If he got almost a 50% increase with a quad core machine i expect crazy numbers from an 8-core variety. Maybe ~200fps encoding rate.

I like handbrake but I'm not married to it. If there was another application out there (even paid, but reasonably priced) which could nab me 50-100%% gains I'd be all over it.
 

Eidorian

macrumors Penryn
Mar 23, 2005
29,097
304
Indianapolis
Handbrake is nice but the majority of Apple's machines sadly are dual cores. What I'd like to know is how much more performance you can squeeze out.

4 cores, 4 threads per socket on Core 2 is getting old too. Nehalem needs to make more of a showing at Apple.
 

admanimal

macrumors 68040
Apr 22, 2005
3,531
2
Very good news. Now if only all the apps for macs would take advantage of GCD & OCL.

You (and most other people) need to realize that there is a relatively small set of computations that can be accelerated by this kind of technology. Of course certain types of video, image, and sound processing will work, but your run-of-the-mill Mac app isn't going to be able to take advantage of GCD or OCL.
 

DipDog3

macrumors 65816
Sep 20, 2002
1,189
691
But of course developers will need to rework their apps, and I doubt that a lot of them are going to do that until they release another version.
 

hassiman

macrumors member
Aug 30, 2006
94
1
San Diego
Not sure if my Intel macPro can take advantage of this... what do you think?

My MacPro is one of those that can not boot to the 64 bit Kernal... but still runs 64 bit apps.. like LightRoom. Does this mean it can not take advantage of these advancements?:confused:
 

SHOlover

macrumors member
Nov 8, 2007
46
0
So Cal
You (and most other people) need to realize that there is a relatively small set of computations that can be accelerated by this kind of technology. Of course certain types of video, image, and sound processing will work, but your run-of-the-mill Mac app isn't going to be able to take advantage of GCD or OCL.


Exactly, but right now FCP has more than 50 percent of the editing market share. Not a bad user group for this type of technology. Compressor needs multithreading badly! Qmaster is just a band aid.

This is where FCS falls short:
1. Rendering
2. Encoding
3. Real time vector effects

This technology will help all of these. :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.