Forums > Jitter

performance issue and trying to replace a certain optical effect by gl and noise

December 17, 2006 | 1:16 pm

I have some performance troubles, I’ve read the threaths concerning the use of gl and implemented most into the final patch, I have however an ‘effect’ that I want to recreate by using jit.noise instead of this whopping 20480×3072 matrix (I know WAAAYY to big)

I’ve invluded the patch and a pdf that you’ll need to load into the patch to create it all, I hope it wll make some sense once you’re in the patch, it would be very criptical if I would discribe it here,

In the final patch I’ve downsized this thingy so that it actually runs pretty good using three or four of this ‘instances’ but it slows down some times and need the speed.

I wil eventually need one of these matriw style thingies still running (after hopefully fixing the stripy-ones by replacing them with gl) because I have one of the offset/dimension things connected to a wacomtablet and need to be able to single out some elements on a actual composed photograph.

Hope I’m making some sense on a sunday,

Bets Regards

Pieter

max v2;
#N vpatcher 20 74 1260 763;
#P window setfont "Sans Serif" 9.;
#P window linecount 5;
#P comment 450 387 100 196617 I guess this isn’t any better , because in the endpatch it’s slowing the whole thing down;
#P window linecount 1;
#P newex 553 246 172 196617 jit.matrix twee 4 char 20480 6144;
#P toggle 905 49 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 905 227 47 1441802 pack;
#P newex 905 252 62 1441802 line 0 50;
#P window setfont "Sans Serif" 9.;
#P number 942 49 81 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 985 227 47 1441802 pack;
#P newex 985 252 62 1441802 line 0 50;
#P window setfont "Sans Serif" 9.;
#P newex 905 95 58 196617 metro 500;
#P newex 985 173 70 196617 random 1536;
#P newex 905 173 70 196617 random 5120;
#P newex 905 290 62 196617 pak dim 0 0;
#P newex 553 453 154 196617 jit.window @rect 0 0 1280 384;
#P flonum 659 158 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 625 158 15 0;
#P newex 625 178 44 196617 metro 2;
#P toggle 740 50 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 740 228 47 1441802 pack;
#P newex 740 253 62 1441802 line 0 50;
#P window setfont "Sans Serif" 9.;
#P number 777 50 81 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 820 228 47 1441802 pack;
#P newex 820 253 62 1441802 line 0 50;
#P window setfont "Sans Serif" 9.;
#P newex 740 96 58 196617 metro 500;
#P newex 820 174 70 196617 random 1536;
#P newex 740 174 70 196617 random 5120;
#P newex 740 291 73 196617 pak offset 0 0;
#P newex 553 425 228 196617 jit.submatrix @dim 2560 768 @ offset 100 100;
#P message 553 197 67 196617 importmovie;
#P window linecount 2;
#P comment 448 246 100 196617 this is a way to big matrix , I know!!;
#P window linecount 5;
#P comment 551 475 100 196617 this jit.window is already replaced by a gl drawing context and some videoplanes;
#P window linecount 8;
#P comment 202 56 431 196617 Here’s the patch , I want to get the same type of effect then when you load streepekes into the first big matrix. I am trying to recreate this by using jit.noise but cannot figure out how to have more alpha blackness into the patch and thus less stripes. In addition I think I will only need to randomly create a ‘sripy picture’ every now and then , because I guess I can reposition the texture on a gl structure in the same way I ‘fly over’ the image now;
#P connect 3 0 29 0;
#P fasten 15 0 29 0 630 214 558 214;
#P fasten 29 0 4 0 558 309 558 309;
#P fasten 5 0 4 0 745 333 558 333;
#P fasten 19 0 4 0 910 332 558 332;
#P connect 4 0 18 0;
#P connect 16 0 15 0;
#P connect 17 0 15 1;
#P connect 14 0 8 0;
#P connect 8 0 6 0;
#P fasten 6 0 13 0 745 209 745 209;
#P connect 13 0 12 0;
#P fasten 12 0 5 1 745 281 776 281;
#P fasten 11 0 13 1 782 146 782 146;
#P fasten 11 0 8 1 782 80 793 80;
#P fasten 9 0 5 2 825 281 807 281;
#P fasten 8 0 7 0 745 143 825 143;
#P fasten 7 0 10 0 825 209 825 209;
#P connect 10 0 9 0;
#P fasten 11 0 10 1 782 131 862 131;
#P connect 28 0 22 0;
#P connect 22 0 20 0;
#P fasten 20 0 27 0 910 208 910 208;
#P connect 27 0 26 0;
#P fasten 26 0 19 1 910 280 936 280;
#P fasten 25 0 27 1 947 145 947 145;
#P fasten 25 0 22 1 947 79 958 79;
#P fasten 23 0 19 2 990 280 962 280;
#P fasten 22 0 21 0 910 142 990 142;
#P fasten 21 0 24 0 990 208 990 208;
#P connect 24 0 23 0;
#P fasten 25 0 24 1 947 130 1027 130;
#P pop;


Viewing 1 post (of 1 total)