I'm working on a QTKit project in cocoa where the QT movie is taking up ~70% of the CPU load. I would like to move some of the processing load onto the GPU, if possible. Does anyone know if that is possible?
Asked
Active
Viewed 432 times
1
-
You need to determine whether the reduction in computational cost would outweigh the costs of transferring data to and from GPU memory. – Paul R Feb 06 '11 at 20:30
2 Answers
2
On Snow Leopard, use initWithAttributes:error:
to create the QTMovie object, and include the QTMovieOpenForPlaybackAttribute
attribute with a value of YES
. This will use QuickTime X to decode/play the movie, which, if possible, will play it with GPU acceleration.
Be aware that this locks out a lot of functionality. You really do need to only be using the movie for playback. The QuickTime Kit Application Programming Guide has more information.

Peter Hosey
- 95,783
- 15
- 211
- 370
-
Peter you've answered two of my questions on Cocoa dev so far, very much appreciated! – worker1138 Feb 06 '11 at 23:41
1
Install a GPU QuickTime codec for the movie format you want to support ? Apparently such things exist, e.g. CoreAVC.

koan
- 3,596
- 2
- 25
- 35