<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I dont know what the upload path is in GEM, but typically speaking in order to get very high performance video playback on OS X has to make sure to leverage :<div><br></div><div>proper pixel format for the GL textures, GL_UNSIGNED_INT_8888_REV with a BGRA format,&nbsp;</div><div>make sure to use GL_CLIENT_STORAGE_APPLE and GL_TEXTURE_RANGE_APPLE to minimize unecessary copies of of texture data in the system. You can get large performance increases this way.</div><div><br></div><div>see :&nbsp;<a href="http://developer.apple.com/mac/library/samplecode/TextureRange/Introduction/Intro.html">http://developer.apple.com/mac/library/samplecode/TextureRange/Introduction/Intro.html</a></div><div><br></div><div>Does your machine have an NVidia card in it? Issues have been reported on some developer lists I am on that if you do not supply a the proper format NVidia drivers swizzle the channels in software, not in hardware. There <i>was</i>&nbsp;a thread on the NVidia forums that had discussion about this but I am not sure if anything happened with it.</div><div><br></div><div>I personally noticed a ~30% performance <i>decrease</i>&nbsp;in applications playing video to GL on NVidia hardware (from my x1600 to a friends NV8600 mobile) using various apps.&nbsp;</div><div><br></div><div>Im not sure how windows handles this, but I think its safe to say both ATI and Nvidia devote more developer resources to tuning those drivers. Maybe thats part of the issue? Honestly, this is speculation.</div><div><br></div><div>Also, Animation is probably not the codec of choice. Its Run Length encoded, so any video that is not graphic (ie, no truly uniform color values ) will converge on being completely uncomrpessed RGB, which will <i>hammer</i>&nbsp;your hard drives.</div><div><br></div><div>Photo Jpeg or, these days, Apple Intermediate Codec is the tool of choice for slightly compressed, low bandwidth video.&nbsp;</div><div><br></div><div>Maybe this is helpful? Good luck!</div><div><br><div><div>On Apr 9, 2010, at 9:44 AM, Pagano, Patrick wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Maybe it's the codec? <br><br>-----Original Message-----<br>From: <a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a> [mailto:pd-list-bounces@iem.at] On Behalf Of Matteo Sisti Sette<br>Sent: Thursday, April 08, 2010 4:49 PM<br>To: PD list<br>Subject: [PD] GEM: abnormal performance difference PC/Mac?<br><br>Hi,<br><br>I'm working on a patch that has 16 [pix_film]s each one playing back a <br>short loop of video; videos are approx 400x700 size, encoded with <br>Animation and have an alpha channel.<br><br>On a PC with a 2.5GHz dual core (T9300) and Windows, it _almost_ works <br>smoothly: with 10-12 videos it is just fine.<br><br>On a MacBook Pro which has a 2.4GHz dual core it is _much_ slower. Even <br>with only 4 or 5 videos playing, it goes at less than half of the <br>intended 25fps.<br><br>Can the hardware really explain that much difference in performance? Is <br>an intel T9300 that much more powerful than the processor of a MacBook <br>pro? (certainly not because of the 0.1GHz more)? Or the GPU (Nvidia <br>GeForce 9500M GS)?<br><br>Or is there some "software" reason for such a huge performance penalty <br>on Mac OS??<br><br><br>thanks<br>m.<br><br>-- <br>Matteo Sisti Sette<br><a href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a><br>http://www.matteosistisette.com<br><br>_______________________________________________<br>Pd-list@iem.at mailing list<br>UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br><br>_______________________________________________<br>Pd-list@iem.at mailing list<br>UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br></div></blockquote></div><br></div></body></html>