Forums > Jitter

performance of a simple patch

December 11, 2006 | 10:23 pm

Hello,

I’ve got a quite simple Jitter patch which has some performance issues.

It has a jit.qt.movie object connected directly to a jit.window. It is a "VJ style" patch which just has to trigger some Quicktime clips and display them on an external screen.

The source material are 25 fps 720 x 576 Apple Animation clips using thousands of colours. This format gives us better performance than PhotoJPEG coded files.

The computer is not too fast: an iBook G4 876 Mhz 768 MB ram running a MacOS 10.4 and the latest MaxMSP and Jitter. Content is run from an external firewire disc, probably a 5400 rpm model.

The external display is a TV, run in 720 x 756 PAL display mode.

This setup has trouble keeping a more or less steady 24/25 fps frame rate. It has notable, seemingly random dips in performace.

Of course the system spec is not too great but one single stream of video shouldn’t be that taxing?

I’m looking for some ways to improve performance or the confirmation that the current performance is normal for this setup. An example is included underneath, displaying on the main display instead of a 2nd screen.

Regards,
Jorg

max v2;
#N vpatcher 0 0 1280 940;
#P origin 0 214;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 901 295 56 9109513 read 0.mov;
#P newex 901 321 55 9109513 s to_movie;
#P message 832 296 56 9109513 read 9.mov;
#P newex 832 322 55 9109513 s to_movie;
#P message 768 296 56 9109513 read 8.mov;
#P newex 768 322 55 9109513 s to_movie;
#P message 703 295 56 9109513 read 7.mov;
#P newex 703 321 55 9109513 s to_movie;
#P message 640 294 56 9109513 read 6.mov;
#P newex 640 320 55 9109513 s to_movie;
#P message 899 241 56 9109513 read 5.mov;
#P newex 899 267 55 9109513 s to_movie;
#P message 831 242 56 9109513 read 4.mov;
#P newex 831 268 55 9109513 s to_movie;
#P message 766 240 56 9109513 read 3.mov;
#P newex 766 268 55 9109513 s to_movie;
#P message 702 242 56 9109513 read 2.mov;
#P newex 702 268 55 9109513 s to_movie;
#P window setfont "Fixedwidth Serif" 12.;
#P newex 270 210 78 9240588 r to_movie;
#P window setfont "Sans Serif" 9.;
#P message 640 242 56 9109513 read 1.mov;
#P newex 640 268 55 9109513 s to_movie;
#P window setfont "Fixedwidth Serif" 12.;
#P newex 476 265 66 9240588 s to_win;
#P message 476 243 87 9240588 floating $1;
#P toggle 476 221 15 0;
#P newex 476 84 309 9240588 sel 120 27 49 50 51 52 53 54 55 56 57 48 32;
#P newex 476 59 40 9240588 key;
#P toggle 120 139 15 0;
#P newex 120 162 64 9240588 metro 40;
#P user jit.fpsgui 120 426 79 9240588 0;
#P newex 47 326 66 9240588 r to_win;
#P window linecount 2;
#P newex 120 363 232 9240588 jit.window scherm @noaccel 1 @pos 0 0 @size 720 576 @border 0;
#B color 5;
#P window linecount 1;
#P newex 499 197 66 9240588 s to_win;
#P message 499 175 101 9240588 fullscreen $1;
#P toggle 499 153 15 0;
#P window setfont "Sans Serif" 9.;
#P message 174 215 26 9109513 stop;
#P message 79 216 26 9109513 read;
#P newex 120 285 91 9109513 jit.qt.movie 720 576;
#P comment 15 21 100 9109513 VIDEO patch;
#P fasten 13 12 11 0 757 128 868 128 868 5 125 5;
#P connect 11 0 10 0;
#P fasten 2 0 1 0 84 255 125 255;
#P fasten 3 0 1 0 179 254 125 254;
#P fasten 19 0 1 0 275 264 125 264;
#P connect 10 0 1 0;
#P fasten 8 0 7 0 52 363 125 363;
#P connect 1 0 7 0;
#P connect 7 0 9 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P connect 15 0 16 0;
#P connect 13 1 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P fasten 13 2 18 0 527 166 645 166;
#P connect 18 0 17 0;
#P connect 13 7 29 0;
#P connect 29 0 28 0;
#P fasten 13 3 21 0 550 153 707 153;
#P connect 21 0 20 0;
#P fasten 13 8 31 0 665 291 708 291;
#P connect 31 0 30 0;
#P fasten 13 4 23 0 573 139 771 139;
#P connect 23 0 22 0;
#P fasten 13 9 33 0 688 291 773 291;
#P connect 33 0 32 0;
#P fasten 13 5 25 0 596 138 836 138;
#P connect 25 0 24 0;
#P fasten 13 10 35 0 711 291 837 291;
#P connect 35 0 34 0;
#P fasten 13 6 27 0 619 138 904 138;
#P connect 27 0 26 0;
#P fasten 13 11 37 0 734 290 906 290;
#P connect 37 0 36 0;
#P pop;


December 11, 2006 | 10:32 pm

How does this perform on your system? Have you tried using loadram
and preroll on jit.qt.movie?

wes

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 179 388 281 196617 jit.gl.videoplane scherm @texture mov
@transform_reset 2;
#P newex 180 366 244 196617 jit.gl.texture scherm @colormode uyvy @name mov;
#P newex 53 318 50 196617 t b erase;
#P newex 53 343 101 196617 jit.gl.render scherm;
#P message 961 355 56 196617 read 0.mov;
#P newex 961 381 55 196617 s to_movie;
#P message 892 356 56 196617 read 9.mov;
#P newex 892 382 55 196617 s to_movie;
#P message 828 356 56 196617 read 8.mov;
#P newex 828 382 55 196617 s to_movie;
#P message 763 355 56 196617 read 7.mov;
#P newex 763 381 55 196617 s to_movie;
#P message 700 354 56 196617 read 6.mov;
#P newex 700 380 55 196617 s to_movie;
#P message 959 301 56 196617 read 5.mov;
#P newex 959 327 55 196617 s to_movie;
#P message 891 302 56 196617 read 4.mov;
#P newex 891 328 55 196617 s to_movie;
#P message 826 300 56 196617 read 3.mov;
#P newex 826 328 55 196617 s to_movie;
#P message 762 302 56 196617 read 2.mov;
#P newex 762 328 55 196617 s to_movie;
#P window setfont "Fixedwidth Serif" 12.;
#P newex 330 270 78 1441804 r to_movie;
#P window setfont "Sans Serif" 9.;
#P message 700 302 56 196617 read 1.mov;
#P newex 700 328 55 196617 s to_movie;
#P window setfont "Fixedwidth Serif" 12.;
#P newex 536 325 66 1441804 s to_win;
#P message 536 303 87 1441804 floating $1;
#P toggle 536 281 15 0;
#P newex 536 144 309 1441804 sel 120 27 49 50 51 52 53 54 55 56 57 48 32;
#P newex 536 119 40 1441804 key;
#P toggle 180 199 15 0;
#P newex 180 222 73 1441804 qmetro 30;
#P user jit.fpsgui 6 370 79 1441804 0;
#P newex 107 386 66 1441804 r to_win;
#P newex 180 423 367 1441804 jit.window scherm @pos 0 20 @size 720 576
@border 0;
#B color 5;
#P newex 559 257 66 1441804 s to_win;
#P message 559 235 101 1441804 fullscreen $1;
#P toggle 559 213 15 0;
#P window setfont "Sans Serif" 9.;
#P message 234 275 26 196617 stop;
#P message 139 276 26 196617 read;
#P newex 180 345 188 196617 jit.qt.movie 720 576 @colormode uyvy;
#P comment 75 81 100 196617 VIDEO patch;
#P fasten 8 0 7 0 112 415 185 415;
#P connect 10 0 39 0;
#P connect 10 0 1 0;
#P connect 1 0 40 0;
#P fasten 19 0 1 0 335 324 185 324;
#P fasten 3 0 1 0 239 314 185 314;
#P fasten 2 0 1 0 144 315 185 315;
#P connect 39 0 9 0;
#P fasten 39 0 38 0 58 339 58 339;
#P fasten 39 1 38 0 98 339 58 339;
#P connect 11 0 10 0;
#P connect 37 0 36 0;
#P fasten 13 11 37 0 794 350 966 350;
#P connect 27 0 26 0;
#P fasten 13 6 27 0 679 198 964 198;
#P connect 35 0 34 0;
#P fasten 13 10 35 0 771 351 897 351;
#P connect 25 0 24 0;
#P fasten 13 5 25 0 656 198 896 198;
#P connect 33 0 32 0;
#P fasten 13 9 33 0 748 351 833 351;
#P connect 23 0 22 0;
#P fasten 13 4 23 0 633 199 831 199;
#P connect 31 0 30 0;
#P fasten 13 8 31 0 725 351 768 351;
#P connect 21 0 20 0;
#P fasten 13 3 21 0 610 213 767 213;
#P connect 29 0 28 0;
#P connect 13 7 29 0;
#P connect 18 0 17 0;
#P fasten 13 2 18 0 587 226 705 226;
#P connect 5 0 6 0;
#P connect 4 0 5 0;
#P connect 13 1 4 0;
#P connect 15 0 16 0;
#P connect 14 0 15 0;
#P connect 13 0 14 0;
#P connect 12 0 13 0;
#P fasten 13 12 11 0 817 188 928 188 928 65 185 65;
#P window clipboard copycount 42;


December 11, 2006 | 10:44 pm

Thanks for your reply.

I’m not on the G4 system at the moment (will have acces again on wednesday) but on a 3.2 Ghz Athlon WinXP system this patch gives around 7 fps with a file which gives 24-25 fps with the patch I posted.

Will look into loadram and preroll, I have not been using these.

regards,
Jorg


December 11, 2006 | 11:00 pm


December 12, 2006 | 1:00 am

On 12/11/06, Jorg wrote:
>
> Thanks for your reply.
>
> I’m not on the G4 system at the moment (will have acces again on wednesday) but on a 3.2 Ghz Athlon WinXP system this patch gives around 7 fps with a file which gives 24-25 fps with the patch I posted.
>

That’s pretty ridiculous and doesn’t sound right to me at all. I was
able to do 720×480 on my powerbook 1.6G and got 33fps no problem. Do
you have demons in your computer?

wes


December 13, 2006 | 12:08 am

Quote: wesley.hoke@gmail.com wrote on Tue, 12 December 2006 02:00

> That’s pretty ridiculous and doesn’t sound right to me at all. I was
> able to do 720×480 on my powerbook 1.6G and got 33fps no problem. Do
> you have demons in your computer?

It runs on Windows XP but there are no other specific demons that I’m aware of.

However, I just ran your modified patch again and noticed that the Max window gives a huge load of openGL errors (texture wrap mode, texture mode, compare mode, all giving invalid enumerations). So that explains it probably. (The original patch doesn’t use any OpenGL functionality). I will give your patch a try on the G4 tomorrow.

regards,
Jorg


December 15, 2006 | 10:51 am

Had some time on the G4 again and the "window" message instead of a patch cord gave a big boost in performance. It gives 24-25 fps now with hardly any dips below that and no big dips at all.

Did not get around to testing the OpenGL method yet, but will do.

regards,
Jorg


Viewing 7 posts - 1 through 7 (of 7 total)