jit.net.send over network while keeping order

May 11, 2007 at 10:38am

jit.net.send over network while keeping order

hi, sending over a giga network using jit.netsend / recv.
realy works great with low latency up to 640 480 with uyvy colorspace
i noticed if i spilt the matrix, i can get even lower latency reported.
but i am having trouble keeping the order of matrices sent.
[jit.split]
/
[t l 1] [t l 2]

sends a int to open the gate on the other computer followed by the matrix.
but the on the other PC from time to time the order of “message then
matrix” gets messed up.
1
jit_matrix left
2
jit_matrix right
1
jit_matrix left
2jit_matrix right
jit_matrix left
1
2
jit_matrix right

working no winxp 1.63b2
and ze patch

#31858
May 11, 2007 at 12:21pm

Hi yair,

Would it be an overkill to store destination info into the matrix
itself, like in the patch pasted below?

hth,
nesa

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 77 540 11 196617 R;
#N vpatcher 65 74 355 275;
#P inlet 162 38 15 0;
#P outlet 117 121 15 0;
#P inlet 69 38 15 0;
#P connect 2 0 1 0;
#P connect 0 0 1 0;
#P pop;
#P hidden newobj 21 314 68 196617 p network;
#P comment 33 316 100 196617 network;
#B color 5;
#N vpatcher 55 59 475 234;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 50 73 27 196617 i;
#P newex 50 50 105 196617 jit.spill @listlength 1;
#P inlet 50 30 15 0;
#P outlet 50 95 15 0;
#P window linecount 0;
#P comment 162 81 198 196617 row 0 contains destination info;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 1 0;
#P pop;
#P newobj 104 385 55 196617 p read tag;
#N vpatcher 65 74 415 300;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 50 93 195 196617 jit.submatrix @dim 160 480 @offset 0 1;
#P inlet 50 30 15 0;
#P outlet 50 168 15 0;
#P window linecount 0;
#P comment 85 129 202 196617 row 0 contains destination number;
#P connect 2 0 3 0;
#P connect 3 0 1 0;
#P pop;
#P newobj 21 385 57 196617 p strip tag;
#P newex 375 64 48 196617 loadbang;
#P user jit.pwindow 62 476 42 62 0 1 0 0 1 0;
#P user jit.pwindow 21 476 42 62 0 1 0 0 1 0;
#P newex 22 435 51 196617 gate 2;
#P newex 21 350 93 196617 t l l;
#P message 375 90 189 196617 setcell 0 val 1 , setcell 1 val 2 , bang;
#P newex 375 117 96 196617 jit.matrix 1 char 2;
#P window linecount 2;
#P newex 375 141 240 196617 jit.matrix tag 4 char 320 481 @adapt 0
@dstdimstart 0 0 @dstdimend 320 1 @usedstdim 1;
#P window linecount 1;
#P hidden message 441 294 82 196617 colormode uyvy;
#P window linecount 2;
#P newex 21 227 252 196617 jit.matrix tag 4 char 320 481 @adapt 0
@dstdimstart 0 1 @dstdimend 320 481 @usedstdim 1;
#P window linecount 1;
#P newex 21 142 73 196617 jit.argb2uyvy;
#P user jit.pwindow 114 148 82 62 0 1 0 0 1 0;
#P button 21 26 30 0;
#P newex 21 92 129 196617 jit.matrix 4 char 640 480;
#P newex 21 63 97 196617 jit.noise 4 char 2 2;
#P newex 21 276 127 196617 jit.split @splitpoint 161;
#P comment 566 91 100 196617 values for gate;
#P user panel 21 314 68 17;
#X brgb 108 162 102;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 1;
#X done;
#P comment 33 540 11 196617 L;
#P connect 6 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 3 0;
#P connect 3 0 22 0;
#P connect 22 0 14 0;
#P connect 14 0 19 0;
#P connect 20 0 15 0;
#P hidden connect 10 0 16 0;
#P lcolor 1;
#P connect 15 0 16 0;
#P connect 19 0 15 1;
#P hidden connect 10 0 17 0;
#P lcolor 1;
#P connect 15 1 17 0;
#P connect 3 1 22 1;
#P connect 14 1 20 0;
#P fasten 5 0 7 0 26 117 120 117;
#P connect 18 0 13 0;
#P connect 13 0 12 0;
#P connect 12 0 11 0;
#P hidden connect 18 0 10 0;
#P lcolor 1;
#P window clipboard copycount 24;

#103999
May 11, 2007 at 2:05pm

nice.
can u lend me some of your ninja skills and tell me how to direct a
matrix using route?
[route jit_matrix] only referance the name.

On 5/11/07, nesa wrote:
> Hi yair,
>
> Would it be an overkill to store destination info into the matrix
> itself, like in the patch pasted below?
>
> hth,
> nesa
>
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P comment 77 540 11 196617 R;
> #N vpatcher 65 74 355 275;
> #P inlet 162 38 15 0;
> #P outlet 117 121 15 0;
> #P inlet 69 38 15 0;
> #P connect 2 0 1 0;
> #P connect 0 0 1 0;
> #P pop;
> #P hidden newobj 21 314 68 196617 p network;
> #P comment 33 316 100 196617 network;
> #B color 5;
> #N vpatcher 55 59 475 234;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 50 73 27 196617 i;
> #P newex 50 50 105 196617 jit.spill @listlength 1;
> #P inlet 50 30 15 0;
> #P outlet 50 95 15 0;
> #P window linecount 0;
> #P comment 162 81 198 196617 row 0 contains destination info;
> #P connect 2 0 3 0;
> #P connect 3 0 4 0;
> #P connect 4 0 1 0;
> #P pop;
> #P newobj 104 385 55 196617 p read tag;
> #N vpatcher 65 74 415 300;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 50 93 195 196617 jit.submatrix @dim 160 480 @offset 0 1;
> #P inlet 50 30 15 0;
> #P outlet 50 168 15 0;
> #P window linecount 0;
> #P comment 85 129 202 196617 row 0 contains destination number;
> #P connect 2 0 3 0;
> #P connect 3 0 1 0;
> #P pop;
> #P newobj 21 385 57 196617 p strip tag;
> #P newex 375 64 48 196617 loadbang;
> #P user jit.pwindow 62 476 42 62 0 1 0 0 1 0;
> #P user jit.pwindow 21 476 42 62 0 1 0 0 1 0;
> #P newex 22 435 51 196617 gate 2;
> #P newex 21 350 93 196617 t l l;
> #P message 375 90 189 196617 setcell 0 val 1 , setcell 1 val 2 , bang;
> #P newex 375 117 96 196617 jit.matrix 1 char 2;
> #P window linecount 2;
> #P newex 375 141 240 196617 jit.matrix tag 4 char 320 481 @adapt 0
> @dstdimstart 0 0 @dstdimend 320 1 @usedstdim 1;
> #P window linecount 1;
> #P hidden message 441 294 82 196617 colormode uyvy;
> #P window linecount 2;
> #P newex 21 227 252 196617 jit.matrix tag 4 char 320 481 @adapt 0
> @dstdimstart 0 1 @dstdimend 320 481 @usedstdim 1;
> #P window linecount 1;
> #P newex 21 142 73 196617 jit.argb2uyvy;
> #P user jit.pwindow 114 148 82 62 0 1 0 0 1 0;
> #P button 21 26 30 0;
> #P newex 21 92 129 196617 jit.matrix 4 char 640 480;
> #P newex 21 63 97 196617 jit.noise 4 char 2 2;
> #P newex 21 276 127 196617 jit.split @splitpoint 161;
> #P comment 566 91 100 196617 values for gate;
> #P user panel 21 314 68 17;
> #X brgb 108 162 102;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 1;
> #X done;
> #P comment 33 540 11 196617 L;
> #P connect 6 0 4 0;
> #P connect 4 0 5 0;
> #P connect 5 0 8 0;
> #P connect 8 0 9 0;
> #P connect 9 0 3 0;
> #P connect 3 0 22 0;
> #P connect 22 0 14 0;
> #P connect 14 0 19 0;
> #P connect 20 0 15 0;
> #P hidden connect 10 0 16 0;
> #P lcolor 1;
> #P connect 15 0 16 0;
> #P connect 19 0 15 1;
> #P hidden connect 10 0 17 0;
> #P lcolor 1;
> #P connect 15 1 17 0;
> #P connect 3 1 22 1;
> #P connect 14 1 20 0;
> #P fasten 5 0 7 0 26 117 120 117;
> #P connect 18 0 13 0;
> #P connect 13 0 12 0;
> #P connect 12 0 11 0;
> #P hidden connect 18 0 10 0;
> #P lcolor 1;
> #P window clipboard copycount 24;
>
>

#104000
May 11, 2007 at 3:31pm

I’m not sure what are you after… maybe something like this:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 364 428 38 196617 zl join;
#P newex 590 482 96 196617 prepend jit_matrix;
#P newex 477 482 96 196617 prepend jit_matrix;
#P newex 364 482 96 196617 prepend jit_matrix;
#P newex 364 454 237 196617 route matrix1 matrix2;
#P newex 364 401 85 196617 route jit_matrix;
#P connect 0 0 5 0;
#P connect 0 0 5 1;
#P connect 5 0 1 0;
#P connect 1 2 4 0;
#P connect 1 1 3 0;
#P connect 1 0 2 0;
#P window clipboard copycount 6;

maybe we should move this to max list, I bet we’ll have more
interesting solutions!

#104001

You must be logged in to reply to this topic.