FPS - performance study - Max7
I have made a video patch outputing on 2 720p screens (3640 x 720) with 2 videos sequences to test the fps with jit.movie on Max7.
I'm quite happy with the results and would like to know if there is anything I could add/remove or change to increase the performance even more.
I can't use jit.world because I am using jit.gl.asynchread
My system description:
OsX version 10.7.5
Processor: 2.2 Ghz intel core i7
Memory: 4 gb 1333 MHz DDR3
Graphics AMD Radeon HD 6750M 512 MB
FPS PERFORMANCE - OUTPUT 2560 X 720
PJpeg 1280 x 720 high res, nofast = 40 to 50 fps, drops to 33 fps when loops
PJpeg 1280 x 720 high res, fast = 35 to 43 fps, drops to 33 fps when loops
MJpeg-A 1280 x 720 medium res, fast = 14 to 17 fps, drops to 12 fps when loops
H264 1280 x 720 high res, fast = 38 to 53 fps
FPS PERFORMANCE - OUTPUT 2560 X 720 - USING COLORMODE UYVY
PJpeg 1280 x 720 high res, nofast = 37 to 50 fps, drops to 35 fps when loops
PJpeg 1280 x 720 high res, fast = 41 to 55 fps, drops to 29 fps when loops
MJpeg-A 1280 x 720 medium res, fast = 21 to 25 fps, drops to 17 fps when loops
H264 1280 x 720 high res, fast = 63 to 85 fps, drops to 45 fps when loops
Sorry for the confusion the right patch is F-LECTEUR-VIDEO_02.maxpat
hi MARIE-HELENE.
the best performance out of jit.movie will be with @output_texture 1 @colormode uyvy.
there is no need to use the uyvy2rgba slab, as the jit.movie texture output handles the conversion internally.
additionally, i'm not sure why you are using jit.gl.asyncread. is it for a preview view?
if so, you will have better performance using shared contexts for this.
check the following wiki article on how to do this:
https://cycling74.com/wiki/index.php?title=OpenGL_Preview_Window
Thanks a lot Rob!
I guess this does apply as well to jit.world ?
I'll try tomorrow.
Btw, you may want to also explore updating to 10.8 or higher and use the AVFoundation video engine for even greater performance.
Joshua
We are moving everything to Yosemite so it should be ok.
I am unsure why we need at all @colormode uyvy anymore then.
As for the exemple with gl.node for a preview it isn't working well
ate the moment.
Anyway we'll test all that on OSX Yosemite and give you some feedback.
Hey Rob
What am I missing here to get the preview ?
the shared attribute is not sticky, unfortunately, so you need to send the message shared 1 to the pwindow, with something like a loadbang (or loademess shared 1).
you also need to make sure you set the @name attribute to "preview". the name attribute should be sticky, and therefore should retain its value when the patch reloads.