jitter judder

Nov 10, 2007 at 8:39pm

jitter judder

Hello

Getting some performance issues in jitter in some visuals that I have only just started building. Not sure whether this is jitter or opengl but I thought it may be because I was using metro. Someone suggested I use the cpuclock object (as demonstrated in the Animator receipe here: http://www.cycling74.com/story/2006/2/17/153427/406) but it does not seem to make any difference. When I rotate a shape I get a slight judder / it pauses very briefly. Is there some way to eliminate this? Any techniques to manage animation more efficently to improve speed? Or am I missing something completely in how this is done?

I’ve included my patch below, when you launch it turn it on and click into the patcher triangleshapes to access controls to turn on and rotate / move / scale an ellipse.

max v2;
#N vpatcher 319 134 803 549;
#P toggle 310 234 15 0;
#P window setfont “Sans Serif” 9.;
#P message 326 234 110 196617 pak lighting_enable $1;
#P toggle 310 216 15 0;
#P message 326 216 114 196617 pak smooth_shading $1;
#P toggle 310 198 15 0;
#P message 326 198 101 196617 pak depth_enable $1;
#P toggle 310 180 15 0;
#P message 326 180 100 196617 pak blend_enable $1;
#P newex 49 211 49 196617 togedge;
#P message 65 232 14 196617 0;
#P message 49 232 14 196617 1;
#P newex 177 185 48 196617 loadbang;
#P newex 49 190 30 196617 t b b;
#P message 112 273 34 196617 3037;
#P toggle 49 171 15 0;
#P newex 49 253 29 196617 gate;
#P newex 49 273 62 196617 cpuclock;
#P newex 49 292 68 196617 %;
#N vpatcher 222 470 1171 1114;
#P origin -137 0;
#P window setfont “Sans Serif” 9.;
#P newex 24 150 47 196617 pak 0 0;
#P number 61 129 35 9 1 512 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 61 110 14 196617 1;
#P message 24 110 14 196617 1;
#P newex 703 42 79 196617 t b b b b b b;
#P outlet 401 362 15 0;
#P comment 381 363 23 196617 Out;
#P newex 703 20 48 196617 loadbang;
#P number 24 129 35 9 1 512 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Fixedwidth Serif” 10.;
#P message 24 172 160 1441802 texture texture-one $1 $2;
#P message 189 149 208 1441802 usetexture texture-one , interp $1;
#P message 464 148 34 1441802 read;
#P newex 401 148 62 1441802 metro 40;
#P window setfont “Sans Serif” 9.;
#P newex 401 200 139 196617 prepend texture texture-one;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 401 173 131 1441802 jit.qt.movie 320 240;
#B color 5;
#P message 597 149 172 1441802 texture texture-one 128 128;
#P connect 11 1 12 0;
#P connect 12 0 7 0;
#P connect 7 0 15 0;
#P connect 15 0 6 0;
#P connect 11 2 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 1;
#P connect 11 3 5 0;
#P connect 11 0 3 0;
#P connect 3 0 1 0;
#P fasten 4 0 1 0 469 169 406 169;
#P connect 1 0 2 0;
#P connect 6 0 10 0;
#P connect 5 0 10 0;
#P connect 2 0 10 0;
#P connect 0 0 10 0;
#P connect 11 5 0 0;
#P connect 8 0 11 0;
#P pop;
#P newobj 280 255 72 196617 p texture-one;
#N vpatcher 604 313 1059 732;
#P origin -43 -189;
#P window setfont “Sans Serif” 9.;
#P comment 280 288 13 196617 Z;
#P comment 229 288 14 196617 Y;
#P comment 179 288 14 196617 X;
#P comment 122 231 35 196617 Reset;
#P comment 66 231 39 196617 On/Off;
#P flonum 193 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 142 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 227 249 14 196617 Y;
#P comment 176 249 14 196617 X;
#P comment 71 249 34 196617 Scale;
#P user ubumenu 221 304 24 196617 0 1 1 0;
#X add X;
#X add Y;
#X add Z;
#X prefix_set 0 0 0;
#P comment 196 306 31 196617 Axis;
#P comment 309 306 24 196617 Max;
#P comment 248 306 24 196617 Min;
#P flonum 332 305 35 9 -20. 20. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 271 305 35 9 -20. 20. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 20 306 86 196617 Animate Position;
#P comment 60 288 46 196617 Position;
#P flonum 104 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 273 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 222 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 172 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 157 230 15 0;
#P comment 122 267 51 196617 Direction;
#P user ubumenu 123 304 70 196617 0 1 1 0;
#X add Up;
#X add Down;
#X add Up & Down;
#X prefix_set 0 0
0;
#P flonum 106 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 246 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 196 286 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 144 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 104 266 15 0;
#N vpatcher 23 92 1073 794;
#P origin -45 -187;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 594 239 49 196617 togedge;
#P message 610 260 14 196617 0;
#P message 594 260 14 196617 1;
#P newex 594 282 29 196617 gate;
#P inlet 979 63 15 0;
#P comment 937 64 48 196617 Timer in;
#P newex 213 150 49 196617 togedge;
#P message 229 171 14 196617 0;
#P message 213 171 14 196617 1;
#P newex 213 193 29 196617 gate;
#P outlet 949 629 15 0;
#P window linecount 1;
#P comment 914 630 37 196617 Off out;
#P outlet 895 629 15 0;
#P comment 861 630 37 196617 On out;
#P message 988 175 14 196617 0;
#P message 1003 175 14 196617 1;
#P newex 939 175 48 196617 loadbang;
#P newex 329 262 27 196617 + 1;
#P newex 362 288 40 196617 gate 3;
#P message 341 180 39 196617 min $1;
#P message 349 203 42 196617 max $1;
#P comment 177 48 89 196617 Animate Position;
#P inlet 411 63 15 0;
#P inlet 368 63 15 0;
#P comment 388 64 24 196617 Max;
#P comment 347 64 24 196617 Min;
#P inlet 329 63 15 0;
#P comment 303 64 31 196617 Axis;
#P inlet 48 63 15 0;
#P inlet 87 63 15 0;
#P comment 76 64 14 196617 Y;
#P comment 36 64 14 196617 X;
#P comment 36 48 46 196617 Scale;
#P message 480 507 32 196617 reset;
#P newex 480 527 159 196617 jit.gl.handle visualiser @radius 1;
#P message 100 232 31 196617 1. 1.;
#P newex 48 253 71 196617 prepend scale;
#P newex 48 231 49 196617 pak 0. 0.;
#P inlet 280 63 15 0;
#P inlet 453 63 15 0;
#P inlet 482 63 15 0;
#P inlet 511 63 15 0;
#P comment 501 64 13 196617 Z;
#P comment 471 64 14 196617 Y;
#P comment 441 64 14 196617 X;
#P comment 441 48 46 196617 Position;
#P inlet 641 63 15 0;
#P comment 604 64 41 196617 On/Off;
#P inlet 736 63 15 0;
#P inlet 705 63 15 0;
#P inlet 674 63 15 0;
#P comment 724 64 13 196617 Z;
#P comment 692 64 14 196617 Y;
#P comment 661 64 14 196617 X;
#P inlet 842 63 15 0;
#P comment 810 64 37 196617 Reset;
#P inlet 902 63 15 0;
#P comment 866 64 37 196617 On/Off;
#P inlet 213 63 15 0;
#P comment 234 64 51 196617 Direction;
#P comment 604 48 47 196617 Rotation;
#P comment 177 64 41 196617 On/Off;
#P user panel 3 21 1022 86;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P message 529 449 33 196617 dump;
#N coll ;
#T flags 1 0;
#T 1 reset;
#T 2 glcolor 1. 0. 0. 0.05;
#T 3 moveto 0. 0.2 0.;
#T 4 ellipse 0.5 0.7;
#P newobj 475 448 53 196617 coll;
#P newex 902 351 44 196617 togedge;
#P message 524 239 43 196617 0. 0. 0.;
#P newex 453 260 83 196617 prepend position;
#N counter 0 -2. 2.;
#X flags 0 0;
#P newobj 213 260 82 196617 counter 0 -2. 2.;
#B color 5;
#P newex 453 238 68 196617 pak 0. 0. 0.;
#P message 936 375 14 196617 1;
#P message 936 395 34 196617 reset;
#P flonum 641 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 612 344 137 196617 pak rotate 0. 0. 0. 0.;
#N counter 0 0 359;
#X flags 0 0;
#P newobj 594 303 83 196617 counter 0 0 359;
#B color 5;
#P window linecount 2;
#P newex 453 472 263 196617 jit.gl.sketch visualiser GPU @blend_enable 1 @depth_enable 1 @smooth_shading 1 @lighting_enable 0;
#B color 5;
#P window linecount 1;
#P comment 393 481 65 196617 1: Top Right;
#P user panel 3 590 1022 86;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 49 0 40 0;
#P connect 40 0 41 0;
#P fasten 42 0 41 0 105 250 53 250;
#P connect 48 0 40 1;
#P fasten 23 0 42 0 847 221 105 221;
#P connect 19 0 71 0;
#P connect 71 0 69 0;
#P fasten 70 0 68 0 234 189 218 189;
#P connect 69 0 68 0;
#P connect 68 0 9 0;
#P fasten 58 0 9 0 346 254 218 254;
#P fasten 57 0 9 0 354 257 218 257;
#P fasten 71 1 70 0 257 169 234 169;
#P fasten 39 0 9 1 285 250 236 250;
#P fasten 73 0 68 1 984 122 274 122 274 190 237 190;
#P fasten 23 0 9 3 847 224 272 224;
#P connect 51 0 60 0;
#P fasten 54 0 58 0 373 177 346 177;
#P fasten 55 0 57 0 416 200 354 200;
#P fasten 60 0 59 0 334 282 367 282;
#P fasten 9 0 59 1 218 285 397 285;
#P connect 38 0 8 0;
#P fasten 59 0 8 0 367 316 429 316 429 236 458 236;
#P connect 8 0 10 0;
#P fasten 11 0 10 0 529 257 458 257;
#P fasten 13 0 2 0 480 468 458 468;
#P fasten 6 0 2 0 941 468 458 468;
#P connect 10 0 2 0;
#P fasten 4 0 2 0 617 364 458 364;
#P fasten 41 0 2 0 53 352 458 352;
#P connect 43 0 2 0;
#P connect 14 0 13 0;
#P connect 44 0 43 0;
#P connect 37 0 8 1;
#P fasten 59 1 8 1 382 313 426 313 426 233 487 233;
#P connect 36 0 8 2;
#P fasten 59 2 8 2 397 310 423 310 423 230 516 230;
#P fasten 23 0 11 0 847 230 529 230;
#P fasten 12 0 14 0 907 445 534 445;
#P fasten 31 0 77 0 646 193 599 193;
#P connect 77 0 75 0;
#P connect 75 0 74 0;
#P fasten 76 0 74 0 615 278 599 278;
#P connect 74 0 3 0;
#P fasten 77 1 76 0 638 258 615 258;
#P fasten 73 0 74 1 984 125 657 125 657 278 618 278;
#P fasten 3 0 5 0 599 322 646 322;
#P connect 5 0 4 1;
#P fasten 23 0 3 3 847 300 653 300;
#P connect 27 0 4 2;
#P connect 28 0 4 3;
#P connect 29 0 4 4;
#P fasten 62 0 65 0 1008 514 900 514;
#P connect 21 0 12 0;
#P connect 12 1 7 0;
#P connect 7 0 6 0;
#P fasten 63 0 67 0 993 500 954 500;
#P connect 61 0 63 0;
#P connect 61 0 62 0;
#P pop;
#P newobj 57 330 315 196617 p shapeone;
#P toggle 104 230 15 0;
#P toggle 106 305 15 0;
#P comment 307 266 13 196617 Z;
#P comment 256 266 14 196617 Y;
#P comment 206 266 14 196617 X;
#P comment 66 267 39 196617 Rotate;
#P inlet 209 60 15 0;
#P comment 167 61 48 196617 Timer in;
#P hidden connect 32 0 8 0;
#P hidden connect 33 0 8 1;
#P hidden connect 6 0 8 2;
#P hidden connect 8 1 7 0;
#P hidden connect 8 1 9 0;
#P hidden connect 8 1 13 0;
#P hidden connect 8 1 6 0;
#P hidden connect 14 0 8 3;
#P hidden connect 8 1 14 0;
#P hidden connect 28 0 8 4;
#P hidden connect 20 0 32 0;
#P hidden connect 8 1 10 0;
#P hidden connect 13 0 10 0;
#P hidden connect 23 0 8 5;
#P hidden connect 8 1 16 0;
#P hidden connect 24 0 8 6;
#P hidden connect 8 1 17 0;
#P hidden connect 10 0 8 7;
#P hidden connect 20 0 33 0;
#P hidden connect 8 1 11 0;
#P hidden connect 13 0 11 0;
#P hidden connect 11 0 8 8;
#P hidden connect 8 1 28 0;
#P hidden connect 8 1 18 0;
#P hidden connect 12 0 8 9;
#P hidden connect 8 1 12 0;
#P hidden connect 13 0 12 0;
#P hidden connect 9 0 8 10;
#P hidden connect 17 0 8 11;
#P hidden connect 8 1 23 0;
#P hidden connect 8 1 19 0;
#P hidden connect 18 0 8 12;
#P hidden connect 19 0 8 13;
#P hidden connect 16 0 8 14;
#P hidden connect 8 1 24 0;
#P hidden connect 7 0 8 15;
#P connect 1 0 8 16;
#P pop 1;
#P newobj 77 346 265 196617 p triangleshapes;
#P toggle 127 67 15 0;
#P newex 91 66 35 196617 sel 27;
#P message 50 89 68 196617 fullscreen $1;
#P newex 50 66 40 196617 key;
#P user jit.fpsgui 244 221 60 196617 0;
#P newex 50 108 377 196617 jit.window visualiser GPU @doublebuffer 1 @depthbuffer 1 @rect 10 50 330 290;
#P newex 177 212 60 196617 qmetro 0.5;
#P newex 177 232 66 196617 t b erase b b;
#N vpatcher 273 403 598 811;
#P origin -17 -10;
#P button 115 26 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 115 47 45 196617 loadbang;
#P comment 72 26 42 196617 Trigger;
#P window linecount 2;
#P comment 118 334 62 196617 Erase_color to jit.render;
#P window setfont “Gill Sans” 10.;
#P window linecount 1;
#P comment 233 110 29 278003722 Alpha;
#P comment 211 110 13 278003722 B;
#P comment 174 110 13 278003722 G;
#P comment 137 110 13 278003722 R;
#P window linecount 2;
#P comment 51 194 62 278003722 Background erase colour;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 213 171 49 196617 * 255.;
#P newex 164 171 48 196617 * 255.;
#P newex 115 171 48 196617 * 255.;
#P user panel 187 194 75 40;
#X brgb 0 0 0;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P message 115 124 35 196617 0.;
#P message 152 124 35 196617 0.;
#P window setfont “Gill Sans” 10.;
#P comment 32 125 82 278003722 Preset:: dark blue;
#P window setfont “Sans Serif” 9.;
#P message 226 124 36 196617 0.05;
#P message 189 124 35 196617 0.;
#P flonum 226 143 36 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 189 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 152 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 115 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 115 244 147 196617 pak erase_color 0. 0. 0. 0.;
#P outlet 184 339 15 0;
#P newex 114 214 68 196617 prepend brgb;
#P newex 114 194 70 196617 pak list 0 0 0;
#P user panel 14 316 283 62;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 1 0 2 0;
#P connect 26 0 25 0;
#P connect 25 0 13 0;
#P connect 13 0 5 0;
#P connect 5 0 15 0;
#P fasten 15 0 1 1 120 190 139 190;
#P fasten 5 0 4 1 120 166 264 166 264 236 154 236;
#P fasten 25 0 12 0 120 83 157 83;
#P connect 12 0 6 0;
#P fasten 16 0 1 2 169 190 159 190;
#P fasten 6 0 16 0 157 169 169 169;
#P fasten 17 0 1 3 218 190 179 190;
#P fasten 6 0 4 2 157 164 266 164 266 238 188 238;
#P fasten 4 0 3 0 120 291 189 291;
#P fasten 2 0 14 0 119 233 185 233 185 192 192 192;
#P fasten 25 0 9 0 120 83 194 83;
#P connect 9 0 7 0;
#P fasten 7 0 17 0 194 169 218 169;
#P fasten 7 0 4 3 194 162 268 162 268 240 222 240;
#P fasten 25 0 10 0 120 83 231 83;
#P connect 10 0 8 0;
#P fasten 8 0 4 4 231 160 270 160 270 242 256 242;
#P pop;
#P newobj 205 255 71 196617 p erasecolour;
#P newex 177 285 214 196617 jit.gl.render visualiser GPU @camera 0. 0. 4.;
#P connect 15 0 17 0;
#P connect 17 0 21 0;
#P connect 21 0 19 0;
#P fasten 20 0 14 0 70 249 54 249;
#P connect 19 0 14 0;
#P connect 14 0 13 0;
#P connect 13 0 12 0;
#P fasten 9 0 7 0 132 86 55 86;
#P connect 7 0 4 0;
#P fasten 21 1 20 0 93 230 70 230;
#P fasten 2 2 14 1 218 251 73 251;
#P connect 12 0 10 0;
#P connect 6 0 8 0;
#P connect 16 0 12 1;
#P fasten 17 1 16 0 74 209 117 209;
#P connect 8 0 9 0;
#P connect 18 0 3 0;
#P connect 3 0 2 0;
#P connect 1 0 0 0;
#P connect 11 0 0 0;
#P connect 2 0 0 0;
#P fasten 2 1 0 0 200 267 182 267;
#P connect 2 3 5 0;
#P connect 18 0 23 0;
#P connect 18 0 25 0;
#P connect 18 0 27 0;
#P connect 18 0 29 0;
#P connect 23 0 22 0;
#P connect 25 0 24 0;
#P connect 27 0 26 0;
#P connect 29 0 28 0;
#P pop;

#34550
Nov 13, 2007 at 11:18am

Some jitter judder is unavoidable, but getting rid of the numberboxes
inside your subpatches that are unnecessary (like the one before
counter in the shape timer subpatch) will help greatly. Even a few
numberboxes slow things down, and gui elements run at different
scheduler rates than max control data (correct me if I’m wrong on
that for numberboxen).

cheers
evan

#116828
Nov 13, 2007 at 5:37pm

Hi

>Some jitter judder is unavoidable

sadly i’ve come to this conclusion as well as I’ve not fully resolved the issue.

>getting rid of the numberboxes
>inside your subpatches that are unnecessary

yep it does indeed help but not eliminate the problem. from more testing I think the judder only seems to be there on things that are constantly moving (at a constant speed) i.e. rotation / horizontal or vertical movement.

i’ve also noticed that the judder seems to happen on rotation at approximately every 45 degrees, could how simple gl shapes are transformed be an issue here as well?

any other tips anyone has got to improve speed and minimise judder would be greatly appreciated.

a+
gar

#116829
Nov 13, 2007 at 7:23pm

I for one see no judder. I would recommend changing the use of
jit.gl.render’s textures to a jit.gl.texture object. You’ll have more
control and flexibility that way. Also, you’re running your qmetry at
0.5. I don’t know why, but you’ll need a max of qmetro 15 and more
han likely qmetro 25 will suffice.

wes

#P window setfont “Sans Serif” 9.;
#P number 83 410 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 370 294 15 0;
#P window linecount 1;
#P message 386 294 110 196617 pak lighting_enable $1;
#P toggle 370 276 15 0;
#P message 386 276 114 196617 pak smooth_shading $1;
#P toggle 370 258 15 0;
#P message 386 258 101 196617 pak depth_enable $1;
#P toggle 370 240 15 0;
#P message 386 240 100 196617 pak blend_enable $1;
#P newex 109 271 49 196617 togedge;
#P message 125 292 14 196617 0;
#P message 109 292 14 196617 1;
#P newex 237 245 48 196617 loadbang;
#P newex 109 250 30 196617 t b b;
#P message 172 333 34 196617 3037;
#P toggle 109 231 15 0;
#P newex 109 313 29 196617 gate;
#P newex 109 333 62 196617 cpuclock;
#P newex 109 352 68 196617 %;
#N vpatcher 222 470 1171 1114;
#P origin -137 0;
#P toggle 401 123 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 393 85 48 196617 loadbang;
#P window setfont “Fixedwidth Serif” 10.;
#P message 464 148 100 1441802 read dishes.mov;
#P newex 401 148 62 1441802 metro 40;
#P window setfont “Sans Serif” 9.;
#P newex 401 200 208 196617 jit.gl.texture visualiser @name texture-one;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 401 173 131 1441802 jit.qt.movie 320 240;
#B color 5;
#P connect 4 0 5 0;
#P connect 5 0 2 0;
#P fasten 3 0 0 0 469 169 406 169;
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 340 315 72 196617 p texture-one;
#N vpatcher 604 313 1059 732;
#P origin -43 -189;
#P window setfont “Sans Serif” 9.;
#P comment 280 288 13 196617 Z;
#P comment 229 288 14 196617 Y;
#P comment 179 288 14 196617 X;
#P comment 122 231 35 196617 Reset;
#P comment 66 231 39 196617 On/Off;
#P flonum 193 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 142 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 227 249 14 196617 Y;
#P comment 176 249 14 196617 X;
#P comment 71 249 34 196617 Scale;
#P user ubumenu 221 304 24 196617 0 1 1 0;
#X add X;
#X add Y;
#X add Z;
#X prefix_set 0 0 0;
#P comment 196 306 31 196617 Axis;
#P comment 309 306 24 196617 Max;
#P comment 248 306 24 196617 Min;
#P flonum 332 305 35 9 -20. 20. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 271 305 35 9 -20. 20. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 20 306 86 196617 Animate Position;
#P comment 60 288 46 196617 Position;
#P flonum 104 248 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 273 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 222 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 172 265 35 9 -1 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 157 230 15 0;
#P comment 122 267 51 196617 Direction;
#P user ubumenu 123 304 70 196617 0 1 1 0;
#X add Up;
#X add Down;
#X add Up & Down;
#X prefix_set 0 0
0;
#P flonum 106 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 246 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 196 286 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 144 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 104 266 15 0;
#N vpatcher 23 92 1073 794;
#P origin -45 -187;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 594 239 49 196617 togedge;
#P message 610 260 14 196617 0;
#P message 594 260 14 196617 1;
#P newex 594 282 29 196617 gate;
#P inlet 979 63 15 0;
#P comment 937 64 48 196617 Timer in;
#P newex 213 150 49 196617 togedge;
#P message 229 171 14 196617 0;
#P message 213 171 14 196617 1;
#P newex 213 193 29 196617 gate;
#P outlet 949 629 15 0;
#P window linecount 1;
#P comment 914 630 37 196617 Off out;
#P outlet 895 629 15 0;
#P comment 861 630 37 196617 On out;
#P message 988 175 14 196617 0;
#P message 1003 175 14 196617 1;
#P newex 939 175 48 196617 loadbang;
#P newex 329 262 27 196617 + 1;
#P newex 362 288 40 196617 gate 3;
#P message 341 180 39 196617 min $1;
#P message 349 203 42 196617 max $1;
#P comment 177 48 89 196617 Animate Position;
#P inlet 411 63 15 0;
#P inlet 368 63 15 0;
#P comment 388 64 24 196617 Max;
#P comment 347 64 24 196617 Min;
#P inlet 329 63 15 0;
#P comment 303 64 31 196617 Axis;
#P inlet 48 63 15 0;
#P inlet 87 63 15 0;
#P comment 76 64 14 196617 Y;
#P comment 36 64 14 196617 X;
#P comment 36 48 46 196617 Scale;
#P message 480 507 32 196617 reset;
#P newex 480 527 159 196617 jit.gl.handle visualiser @radius 1;
#P message 100 232 31 196617 1. 1.;
#P newex 48 253 71 196617 prepend scale;
#P newex 48 231 49 196617 pak 0. 0.;
#P inlet 280 63 15 0;
#P inlet 453 63 15 0;
#P inlet 482 63 15 0;
#P inlet 511 63 15 0;
#P comment 501 64 13 196617 Z;
#P comment 471 64 14 196617 Y;
#P comment 441 64 14 196617 X;
#P comment 441 48 46 196617 Position;
#P inlet 641 63 15 0;
#P comment 604 64 41 196617 On/Off;
#P inlet 736 63 15 0;
#P inlet 705 63 15 0;
#P inlet 674 63 15 0;
#P comment 724 64 13 196617 Z;
#P comment 692 64 14 196617 Y;
#P comment 661 64 14 196617 X;
#P inlet 842 63 15 0;
#P comment 810 64 37 196617 Reset;
#P inlet 902 63 15 0;
#P comment 866 64 37 196617 On/Off;
#P inlet 213 63 15 0;
#P comment 234 64 51 196617 Direction;
#P comment 604 48 47 196617 Rotation;
#P comment 177 64 41 196617 On/Off;
#P user panel 3 21 1022 86;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P message 529 449 33 196617 dump;
#N coll ;
#T flags 1 0;
#T 1 reset;
#T 2 glcolor 1. 0. 0. 0.05;
#T 3 moveto 0. 0.2 0.;
#T 4 ellipse 0.5 0.7;
#P newobj 475 448 53 196617 coll;
#P newex 902 351 44 196617 togedge;
#P message 524 239 43 196617 0. 0. 0.;
#P newex 453 260 83 196617 prepend position;
#N counter 0 -2. 2.;
#X flags 0 0;
#P newobj 213 260 82 196617 counter 0 -2. 2.;
#B color 5;
#P newex 453 238 68 196617 pak 0. 0. 0.;
#P message 936 375 14 196617 1;
#P message 936 395 34 196617 reset;
#P flonum 641 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 612 344 137 196617 pak rotate 0. 0. 0. 0.;
#N counter 0 0 359;
#X flags 0 0;
#P newobj 594 303 83 196617 counter 0 0 359;
#B color 5;
#P window linecount 2;
#P newex 453 472 263 196617 jit.gl.sketch visualiser GPU @blend_enable
1 @depth_enable 1 @smooth_shading 1 @lighting_enable 0;
#B color 5;
#P window linecount 1;
#P comment 393 481 65 196617 1: Top Right;
#P user panel 3 590 1022 86;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 49 0 40 0;
#P fasten 42 0 41 0 105 250 53 250;
#P connect 40 0 41 0;
#P connect 48 0 40 1;
#P fasten 23 0 42 0 847 221 105 221;
#P connect 19 0 71 0;
#P connect 71 0 69 0;
#P connect 69 0 68 0;
#P fasten 70 0 68 0 234 189 218 189;
#P fasten 57 0 9 0 354 257 218 257;
#P fasten 58 0 9 0 346 254 218 254;
#P connect 68 0 9 0;
#P fasten 71 1 70 0 257 169 234 169;
#P fasten 39 0 9 1 285 250 236 250;
#P fasten 73 0 68 1 984 122 274 122 274 190 237 190;
#P fasten 23 0 9 3 847 224 272 224;
#P connect 51 0 60 0;
#P fasten 54 0 58 0 373 177 346 177;
#P fasten 55 0 57 0 416 200 354 200;
#P fasten 60 0 59 0 334 282 367 282;
#P fasten 9 0 59 1 218 285 397 285;
#P fasten 59 0 8 0 367 316 429 316 429 236 458 236;
#P connect 38 0 8 0;
#P fasten 11 0 10 0 529 257 458 257;
#P connect 8 0 10 0;
#P connect 43 0 2 0;
#P fasten 41 0 2 0 53 352 458 352;
#P fasten 4 0 2 0 617 364 458 364;
#P connect 10 0 2 0;
#P fasten 6 0 2 0 941 468 458 468;
#P fasten 13 0 2 0 480 468 458 468;
#P connect 14 0 13 0;
#P connect 44 0 43 0;
#P fasten 59 1 8 1 382 313 426 313 426 233 487 233;
#P connect 37 0 8 1;
#P fasten 59 2 8 2 397 310 423 310 423 230 516 230;
#P connect 36 0 8 2;
#P fasten 23 0 11 0 847 230 529 230;
#P fasten 12 0 14 0 907 445 534 445;
#P fasten 31 0 77 0 646 193 599 193;
#P connect 77 0 75 0;
#P fasten 76 0 74 0 615 278 599 278;
#P connect 75 0 74 0;
#P connect 74 0 3 0;
#P fasten 77 1 76 0 638 258 615 258;
#P fasten 73 0 74 1 984 125 657 125 657 278 618 278;
#P fasten 3 0 5 0 599 322 646 322;
#P connect 5 0 4 1;
#P fasten 23 0 3 3 847 300 653 300;
#P connect 27 0 4 2;
#P connect 28 0 4 3;
#P connect 29 0 4 4;
#P fasten 62 0 65 0 1008 514 900 514;
#P connect 21 0 12 0;
#P connect 12 1 7 0;
#P connect 7 0 6 0;
#P fasten 63 0 67 0 993 500 954 500;
#P connect 61 0 63 0;
#P connect 61 0 62 0;
#P pop;
#P newobj 57 330 315 196617 p shapeone;
#P toggle 104 230 15 0;
#P toggle 106 305 15 0;
#P comment 307 266 13 196617 Z;
#P comment 256 266 14 196617 Y;
#P comment 206 266 14 196617 X;
#P comment 66 267 39 196617 Rotate;
#P inlet 209 60 15 0;
#P comment 167 61 48 196617 Timer in;
#P hidden connect 32 0 8 0;
#P hidden connect 33 0 8 1;
#P hidden connect 6 0 8 2;
#P hidden connect 8 1 7 0;
#P hidden connect 8 1 9 0;
#P hidden connect 8 1 13 0;
#P hidden connect 8 1 6 0;
#P hidden connect 14 0 8 3;
#P hidden connect 8 1 14 0;
#P hidden connect 28 0 8 4;
#P hidden connect 20 0 32 0;
#P hidden connect 8 1 10 0;
#P hidden connect 13 0 10 0;
#P hidden connect 23 0 8 5;
#P hidden connect 8 1 16 0;
#P hidden connect 24 0 8 6;
#P hidden connect 8 1 17 0;
#P hidden connect 10 0 8 7;
#P hidden connect 20 0 33 0;
#P hidden connect 8 1 11 0;
#P hidden connect 13 0 11 0;
#P hidden connect 11 0 8 8;
#P hidden connect 8 1 28 0;
#P hidden connect 8 1 18 0;
#P hidden connect 12 0 8 9;
#P hidden connect 8 1 12 0;
#P hidden connect 13 0 12 0;
#P hidden connect 9 0 8 10;
#P hidden connect 17 0 8 11;
#P hidden connect 8 1 23 0;
#P hidden connect 8 1 19 0;
#P hidden connect 18 0 8 12;
#P hidden connect 19 0 8 13;
#P hidden connect 16 0 8 14;
#P hidden connect 8 1 24 0;
#P hidden connect 7 0 8 15;
#P connect 1 0 8 16;
#P pop;
#P newobj 137 406 265 196617 p triangleshapes;
#P toggle 187 127 15 0;
#P newex 151 126 35 196617 sel 27;
#P message 110 149 68 196617 fullscreen $1;
#P newex 110 126 40 196617 key;
#P user jit.fpsgui 304 281 60 196617 0;
#P newex 110 168 377 196617 jit.window visualiser GPU @doublebuffer 1
@depthbuffer 1 @rect 10 50 330 290;
#P newex 237 272 57 196617 qmetro 25;
#P newex 237 292 66 196617 t b erase b b;
#N vpatcher 273 403 598 811;
#P origin -17 -10;
#P button 115 26 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 115 47 45 196617 loadbang;
#P comment 72 26 42 196617 Trigger;
#P window linecount 2;
#P comment 118 334 62 196617 Erase_color to jit.render;
#P window setfont “Gill Sans” 10.;
#P window linecount 1;
#P comment 233 110 29 278003722 Alpha;
#P comment 211 110 13 278003722 B;
#P comment 174 110 13 278003722 G;
#P comment 137 110 13 278003722 R;
#P window linecount 2;
#P comment 51 194 62 278003722 Background erase colour;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 213 171 49 196617 * 255.;
#P newex 164 171 48 196617 * 255.;
#P newex 115 171 48 196617 * 255.;
#P user panel 187 194 75 40;
#X brgb 0 0 0;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P message 115 124 35 196617 0.;
#P message 152 124 35 196617 0.;
#P window setfont “Gill Sans” 10.;
#P comment 32 125 82 278003722 Preset:: dark blue;
#P window setfont “Sans Serif” 9.;
#P message 226 124 36 196617 0.05;
#P message 189 124 35 196617 0.;
#P flonum 226 143 36 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 189 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 152 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 115 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 115 244 147 196617 pak erase_color 0. 0. 0. 0.;
#P outlet 184 339 15 0;
#P newex 114 214 68 196617 prepend brgb;
#P newex 114 194 70 196617 pak list 0 0 0;
#P user panel 14 316 283 62;
#X brgb 255 255 255;
#X frgb 255 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 1 0 2 0;
#P connect 26 0 25 0;
#P connect 25 0 13 0;
#P connect 13 0 5 0;
#P connect 5 0 15 0;
#P fasten 15 0 1 1 120 190 139 190;
#P fasten 5 0 4 1 120 166 264 166 264 236 154 236;
#P fasten 25 0 12 0 120 83 157 83;
#P connect 12 0 6 0;
#P fasten 16 0 1 2 169 190 159 190;
#P fasten 6 0 16 0 157 169 169 169;
#P fasten 17 0 1 3 218 190 179 190;
#P fasten 6 0 4 2 157 164 266 164 266 238 188 238;
#P fasten 4 0 3 0 120 291 189 291;
#P fasten 2 0 14 0 119 233 185 233 185 192 192 192;
#P fasten 25 0 9 0 120 83 194 83;
#P connect 9 0 7 0;
#P fasten 7 0 17 0 194 169 218 169;
#P fasten 7 0 4 3 194 162 268 162 268 240 222 240;
#P fasten 25 0 10 0 120 83 231 83;
#P connect 10 0 8 0;
#P fasten 8 0 4 4 231 160 270 160 270 242 256 242;
#P pop;
#P newobj 265 315 71 196617 p erasecolour;
#P newex 237 345 214 196617 jit.gl.render visualiser GPU @camera 0. 0. 4.;
#P connect 18 0 3 0;
#P connect 18 0 23 0;
#P connect 18 0 25 0;
#P connect 18 0 27 0;
#P connect 18 0 29 0;
#P connect 3 0 2 0;
#P connect 12 0 30 0;
#P connect 12 0 10 0;
#P connect 1 0 0 0;
#P connect 2 0 0 0;
#P fasten 2 1 0 0 260 327 242 327;
#P connect 29 0 28 0;
#P connect 27 0 26 0;
#P connect 25 0 24 0;
#P connect 23 0 22 0;
#P connect 2 3 5 0;
#P connect 8 0 9 0;
#P fasten 17 1 16 0 134 269 177 269;
#P connect 16 0 12 1;
#P connect 6 0 8 0;
#P fasten 2 2 14 1 278 311 133 311;
#P fasten 21 1 20 0 153 290 130 290;
#P connect 7 0 4 0;
#P fasten 9 0 7 0 192 146 115 146;
#P connect 13 0 12 0;
#P connect 14 0 13 0;
#P connect 19 0 14 0;
#P fasten 20 0 14 0 130 309 114 309;
#P connect 21 0 19 0;
#P connect 17 0 21 0;
#P connect 15 0 17 0;
#P window clipboard copycount 31;

#116830
Nov 13, 2007 at 7:37pm

>I for one see no judder. I would recommend changing the use of
>jit.gl.render’s textures to a jit.gl.texture object. You’ll have >more control and flexibility that way.

it is there but I’m guess different machines / graphics cards will make it less / more noticeable.
are textures faster than simple colours?

>Also, you’re running your qmetry at
>0.5. I don’t know why, but you’ll need a max of qmetro 15 and more
>han likely qmetro 25 will suffice.

yep but that came from that tutorial the Animator from the jitter recipes, it’s there not sure why its not about 20 but it gives a much higher frame rate (50-60). when i do change it to 25 i only get a frame rate of 30.

a+
gar

#116831
Nov 13, 2007 at 7:47pm

> it is there but I’m guess different machines / graphics cards will make it less / more noticeable.
> are textures faster than simple colours?
>

Depends. I just noticed you had some texture stuff in your patch even
though it wasn’t being used. That’s all.

>
> >Also, you’re running your qmetry at
> >0.5. I don’t know why, but you’ll need a max of qmetro 15 and more
> >han likely qmetro 25 will suffice.
>
> yep but that came from that tutorial the Animator from the jitter recipes, it’s there not sure why its not about 20 but it gives a much higher frame rate (50-60). when i do change it to 25 i only get a frame rate of 30.

That doesn’t sound right to me. In my experience, you will get an fps
of 1/metro_ms unless your processing is too heavy. Try adjusting your
performance settings like queuethrottle etc. and see if that helps.
So what OS/CPU/GPU are you on? Your patch is really simple, I’d be
surprised if it couldn’t be made smooth.

wes

#116832
Nov 13, 2007 at 8:07pm

>Depends. I just noticed you had some texture stuff in your patch >even though it wasn’t being used. That’s all.

ah ok, I had been testing some textures but then simplified when this issue arose – just forgot to disconnect the cord.

>That doesn’t sound right to me. In my experience, you will get an >fps of 1/metro_ms unless your processing is too heavy. Try >adjusting your
>performance settings like queuethrottle etc. and see if that helps.

sorry for being thick, what’s queuethrottle? – is it in the performance settings unders options? Overdrive seems to help a bit.

>So what OS/CPU/GPU are you on? Your patch is really simple, I’d be
>surprised if it couldn’t be made smooth.

1.8 Gz PowerPC G5 OSX 10.4.10, 1.5 GB DDR SDRAM
my performance machine is an intel mac (same system) so that will improve things as well – need to test that actually.

a+
gar

#116833
Nov 13, 2007 at 8:15pm

> >That doesn’t sound right to me. In my experience, you will get an >fps of 1/metro_ms unless your processing is too heavy. Try >adjusting your
> >performance settings like queuethrottle etc. and see if that helps.
>
> sorry for being thick, what’s queuethrottle? – is it in the performance settings unders options? Overdrive seems to help a bit.
>
>

menu options > performance options

wes

#116834

You must be logged in to reply to this topic.