Forums > Jitter

run faster..??

November 22, 2006 | 12:43 pm

Hi,

I’m working on an equalizer with an image as background i tried it on a 320×240 screen and it worked well…but now i made it bigger to 1024×768 and it runs very very slow what can i do about it?? I’m just a newbie so you might be a bit confused about everything i put together…sorry about that!

you can download everything at: http://www.ok-parking.nl/lh/example.zip

or use this (without image and sound file):
max v2;
#N vpatcher 186 44 1280 1020;
#P origin 66 4;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 582 560 49 196617 delay 10;
#N vpatcher 10 59 610 459;
#P outlet 67 161 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 156 73 40 196617 key;
#P window setfont "Proportional Serif" 10.;
#P comment 171 121 88 131727370 Full Screen Display;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 266 87 212 1441802 sel 0 1;
#P window linecount 2;
#P message 266 108 98 1441802 ; max showmenubar;
#P message 367 108 98 1441802 ; max hidemenubar;
#P window linecount 1;
#P message 67 120 83 1441802 fullscreen $1;
#P toggle 156 120 15 0;
#P window setfont "Proportional Serif" 10.;
#P comment 218 100 44 131727370 space bar;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 156 98 62 1441802 select 32;
#P user panel 60 60 432 87;
#X brgb 255 9 188;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 3 0 4 0 161 138 152 138 152 116 72 116;
#P connect 4 0 10 0;
#P connect 9 0 1 0;
#P connect 1 0 3 0;
#P fasten 3 0 7 0 161 138 263 138 263 84 271 84;
#P connect 7 0 6 0;
#P connect 7 1 5 0;
#P pop;
#P newobj 151 580 63 196617 p fullscreen;
#P newex 559 847 27 196617 -;
#P message 504 823 26 196617 640;
#P newex 358 839 27 196617 -;
#P message 303 815 26 196617 640;
#P newex 402 744 31 196617 + 45;
#P newex 604 744 31 196617 + 45;
#P newex 782 724 32 196617 print;
#P comment 476 623 50 196617 Soundfile;
#P hidden newex 582 661 45 196617 loadbang;
#P hidden toggle 563 661 15 0;
#P hidden message 563 680 42 196617 loop $1;
#P hidden newex 368 657 27 196617 + 1;
#P hidden newex 367 680 61 196617 selector~ 2;
#P user ubumenu 368 637 100 196617 0 1 1 0;
#X add Soundfile;
#X add Mic/line in;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P toggle 561 621 15 0;
#P hidden newex 524 689 30 196617 dac~;
#P message 532 621 96 196617 open newsoccer.aif;
#N sfplay~ 1 120960 0 ;
#P hidden newobj 521 660 43 196617 sfplay~;
#P hidden newex 471 678 49 196617 deferlow;
#P toggle 368 618 15 0;
#P hidden newex 471 640 30 196617 adc~;
#P hidden newex 471 697 43 196617 t 1 127;
#P hidden newex 471 659 45 196617 loadbang;
#P user levelmeter~ 660 628 128 64 20 1 300 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 0;
#X markersused 8;
#X done;
#P comment 447 700 53 196617 Brightness;
#P comment 383 620 45 196617 Audio on;
#P comment 578 623 29 196617 Play;
#P button 492 753 15 0;
#P newex 402 814 27 196617 +;
#P newex 522 784 58 196617 random 10;
#P button 670 745 15 0;
#P newex 605 808 27 196617 +;
#P newex 700 776 58 196617 random 10;
#P newex 605 882 40 196617 s micR;
#P newex 605 776 32 196617 * 16;
#P message 660 602 108 196617 attack 1 , release 300;
#P newex 402 872 39 196617 s micL;
#P newex 253 21 48 196617 loadbang;
#P message 926 241 26 196617 640;
#P message 960 242 26 196617 480;
#P message 893 242 26 196617 245;
#P message 407 302 26 196617 245;
#P message 365 303 26 196617 640;
#P newex 163 537 65 196617 jit.op @op *;
#P newex 995 243 40 196617 r micR;
#P number 991 268 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 953 268 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 914 268 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 876 268 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 877 306 109 196617 sprintf %d %d %d %d;
#P message 770 275 32 196617 reset;
#P message 877 339 168 196617 clear , paintrect $1 $2 $3 $4 0 0 0;
#P message 770 258 31 196617 clear;
#P newex 814 382 111 196617 jit.lcd 4 char 640 480;
#B color 5;
#P flonum 848 237 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 814 237 15 0;
#P newex 814 258 52 196617 metro 25;
#P newex 450 301 39 196617 r micL;
#P newex 402 777 32 196617 * 16;
#P number 450 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 412 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 373 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 335 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 336 368 109 196617 sprintf %d %d %d %d;
#P message 229 337 32 196617 reset;
#P message 336 401 168 196617 clear , paintrect $1 $2 $3 $4 0 0 0;
#P message 229 320 31 196617 clear;
#P newex 273 444 111 196617 jit.lcd 4 char 640 480;
#B color 5;
#P flonum 307 299 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 273 299 15 0;
#P newex 273 320 52 196617 metro 25;
#P newex 76 496 65 196617 jit.op @op *;
#P newex 76 601 201 196617 jit.window VITES @rect 100 100 640 480;
#P newex 76 465 105 196617 jit.qt.movie 640 480;
#P message 128 427 68 196617 read foto.jpg;
#P toggle 76 400 15 0;
#P newex 76 427 52 196617 metro 25;
#P connect 39 0 1 0;
#P connect 1 0 0 0;
#P connect 0 0 3 0;
#P fasten 2 0 3 0 133 449 81 449;
#P connect 3 0 5 0;
#P connect 77 0 4 0;
#P connect 33 0 4 0;
#P connect 39 0 2 0;
#P connect 9 0 5 1;
#P connect 5 0 33 0;
#P connect 23 0 33 1;
#P connect 39 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 9 0;
#P hidden connect 10 0 9 0;
#P hidden connect 12 0 9 0;
#P connect 11 0 9 0;
#P connect 49 0 73 0;
#P connect 8 0 6 1;
#P fasten 14 0 13 0 340 356 341 356;
#P connect 6 0 13 0;
#P connect 13 0 11 0;
#P connect 73 0 74 0;
#P connect 39 0 34 0;
#P hidden connect 65 0 64 0;
#P connect 39 0 57 0;
#P hidden connect 55 0 57 0;
#P hidden connect 68 0 63 0;
#P hidden connect 63 0 65 0;
#P fasten 15 0 13 1 378 356 374 356;
#P connect 48 0 74 1;
#P hidden connect 56 0 64 1;
#P fasten 16 0 13 2 417 356 407 356;
#P connect 53 0 72 0;
#P connect 72 0 18 0;
#P connect 18 0 48 0;
#P connect 74 0 40 0;
#P connect 39 0 35 0;
#P connect 34 0 16 0;
#P connect 19 0 16 0;
#P hidden connect 59 0 64 2;
#P connect 47 0 48 1;
#P fasten 17 0 13 3 455 356 440 356;
#P connect 35 0 17 0;
#P hidden connect 57 0 56 0;
#P hidden connect 54 0 58 0;
#P hidden connect 58 0 55 0;
#P connect 53 0 49 0;
#P connect 46 0 75 0;
#P hidden connect 60 0 59 0;
#P hidden connect 62 0 59 0;
#P hidden connect 66 0 59 0;
#P connect 49 0 47 0;
#P hidden connect 59 0 61 0;
#P connect 39 0 60 0;
#P hidden connect 59 0 61 1;
#P connect 75 0 76 0;
#P connect 78 0 62 0;
#P hidden connect 68 0 67 0;
#P hidden connect 67 0 66 0;
#P connect 45 0 76 1;
#P connect 39 0 78 0;
#P connect 53 0 71 0;
#P connect 71 0 42 0;
#P connect 42 0 45 0;
#P connect 76 0 43 0;
#P connect 44 0 45 1;
#P connect 39 0 41 0;
#P connect 55 0 53 0;
#P connect 64 0 53 0;
#P connect 41 0 53 0;
#P connect 53 0 46 0;
#P connect 46 0 44 0;
#P connect 53 0 70 0;
#P connect 39 0 21 0;
#P connect 21 0 20 0;
#P connect 20 0 23 0;
#P connect 25 0 23 0;
#P hidden connect 26 0 23 0;
#P hidden connect 24 0 23 0;
#P connect 22 0 20 1;
#P fasten 28 0 27 0 881 294 882 294;
#P connect 20 0 27 0;
#P connect 27 0 25 0;
#P connect 39 0 36 0;
#P fasten 29 0 27 1 919 294 915 294;
#P connect 36 0 29 0;
#P connect 39 0 38 0;
#P fasten 30 0 27 2 958 294 948 294;
#P connect 38 0 30 0;
#P connect 32 0 30 0;
#P connect 39 0 37 0;
#P fasten 31 0 27 3 996 294 981 294;
#P connect 37 0 31 0;
#P pop;


November 22, 2006 | 7:03 pm

Hi zebdaag,

I tried your patch but the window only shows one frame with graphics and then remains black..

What max/jitter version did you use?

- Mattijs


November 22, 2006 | 11:48 pm

Can’t look at the patch right now but a quick stab at the problem would be to turn on interpolation for the jit.window.


November 23, 2006 | 10:25 am

Quote
—————————————————-
> What max/jitter version did you use?
—————————————————-
max 4.5.7 / jitter 1.5.2 (MAC version)

Quote
—————————————————-
> Can’t look at the patch right now but a quick stab at the problem would be to turn on interpolation for the jit.window.
—————————————————-
I tried it with interpolation on and off and it doesn’t give any difference..


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