fluctuating frame rate: leopard issue?

May 8, 2008 at 7:46pm

fluctuating frame rate: leopard issue?

when i have a jit.window on a second screen with os 10.5.2 i always get fluctuating frame rates. here is a demo patch. this one just changes between 48 and 60 frames, but with my big patch its much worse, changing between 30 and 60 frames. i tried to stop all my other processes in activity monitor.

as i don’t have a computer with tiger anymore (can’t install tiger on the new macbook pro) i’m not sure if it really is leopard related.

macbook pro 15″ and 17″, os 10.5.3, max msp 4.6.3, jitter 1.6.3 version

max v2;
#N vpatcher 137 109 784 739;
#P window setfont “Sans Serif” 9.;
#P window linecount 4;
#P comment 147 133 191 196617 the framerate will fluctuate between 60 and 48 about every thee seconds. what causes the lower frame rate? never had this in tiger , just leopard.;
#P window linecount 1;
#P comment 147 109 191 196617 3. turn on the big button ->;
#P comment 147 94 191 196617 2. make it fullscreen (esc);
#P toggle 388 100 57 0;
#P newex 534 304 64 196617 snapshot~ 5;
#P newex 534 348 34 196617 + 0.5;
#P newex 534 326 37 196617 abs 0.;
#P user ezdac~ 362 204 406 237 0;
#P newex 534 281 49 196617 cycle~ 1;
#P toggle 342 339 15 0;
#P message 342 362 88 196617 auto_material $1;
#P window setfont “Sans Serif” 18.;
#P comment 15 10 136 196626 jit.gl.gridshape;
#P window setfont “Sans Serif” 9.;
#P comment 15 35 251 196617 Generate simple geometric shapes as a connected grid;
#P user panel 10 5 400 50;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P message 119 538 105 196617 light_position 1 1 1 0;
#P hidden message 48 413 68 196617 camera 0 0 4;
#P flonum 488 279 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 450 279 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 410 279 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 385 306 85 196617 pak scale 1. 1. 1.;
#P toggle 168 452 15 0;
#P newex 129 451 35 196617 sel 27;
#P message 168 470 68 196617 fullscreen $1;
#P newex 86 494 145 196617 jit.window foo @depthbuffer 1;
#P newex 84 451 40 196617 key;
#P newex 129 212 43 196617 r grimy;
#P user jit.fpsgui 59 211 60 196617 0;
#P newex 142 393 43 196617 s grimy;
#P toggle 226 339 15 0;
#P message 226 362 90 196617 lighting_enable $1;
#P newex 15 154 43 196617 jit.qball;
#P hidden newex 199 296 50 196617 loadbang;
#P toggle 108 339 15 0;
#P message 108 362 81 196617 depth_enable $1;
#P toggle 15 105 15 0;
#P newex 15 131 52 196617 metro 10;
#P newex 15 185 55 196617 t b erase b;
#P newex 129 238 93 196617 jit.gl.gridshape foo;
#B color 5;
#P newex 15 585 80 196617 jit.gl.render foo;
#P hidden message 200 318 14 196617 1;
#P comment 394 163 45 196617 on / off;
#P user panel 354 70 128 121;
#X brgb 252 248 62;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 147 79 191 196617 1. move window “foo” to second screen;
#P user panel 130 70 221 121;
#X brgb 252 248 62;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden connect 40 0 9 0;
#P connect 9 0 8 0;
#P connect 8 0 13 0;
#P connect 13 0 7 0;
#P fasten 29 0 5 0 124 569 20 569;
#P hidden fasten 28 0 5 0 53 506 20 506;
#P connect 7 0 5 0;
#P fasten 7 1 5 0 42 213 20 213;
#P fasten 6 0 5 0 134 297 20 297;
#P hidden connect 12 0 28 0;
#P connect 7 2 17 0;
#P fasten 21 0 20 0 173 489 91 489;
#P hidden fasten 4 0 11 0 205 336 113 336;
#P connect 11 0 10 0;
#P connect 18 0 6 0;
#P fasten 19 0 22 0 89 470 126 470 126 449 134 449;
#P fasten 24 0 16 0 390 381 147 381;
#P fasten 10 0 16 0 113 381 147 381;
#P fasten 14 0 16 0 231 381 147 381;
#P fasten 33 0 16 0 347 381 147 381;
#P fasten 22 0 23 0 134 469 165 469 165 449 173 449;
#P connect 23 0 21 0;
#P hidden connect 12 0 4 0;
#P hidden fasten 4 0 15 0 205 336 231 336;
#P connect 15 0 14 0;
#P hidden fasten 4 0 34 0 205 336 347 336;
#P connect 34 0 33 0;
#P hidden connect 40 0 36 0;
#P connect 25 0 24 1;
#P connect 38 0 24 1;
#P fasten 26 0 24 2 455 300 440 300;
#P connect 38 0 24 2;
#P fasten 27 0 24 3 493 300 465 300;
#P connect 35 0 39 0;
#P connect 39 0 37 0;
#P connect 37 0 38 0;
#P pop;

#37639
May 8, 2008 at 9:10pm

can’t believe it. i have two of the latest macbook pros here.
15″ 2,4 GHz, 2GB RAM, GeForce 8600M GT with 256 MB VRAM
17″, 2,6GHz, 2GB RAM, GeForce 8600M GT with 512 MB VRAM

even if i don’t have an external display attached, i never get more than 59,9 fps. even when running the metro at 1 ms.

a mac pro with a tiger (10.4.11) and an ati radeon X1900 with 512 MB VRAM runs the patch at constant 60 fps on a second screen with 1600×1200 resolution fullscreen or constantly 100fps when have the jit.window on the first screen.

which graphics card do you have in the macbook pro?

k

#130156
May 8, 2008 at 9:49pm

ok. it depends on the refresh rate of the attached screen, because the sync attribute to jit.window is on by default. actually i need it to be on but still don’t get, why it’s fluctuating, which it didn’t do in tiger.

k

#130157
May 8, 2008 at 10:18pm

and now that i switched from the dvi input of the screen to the analog vga input the frame rate behaves like expected. seems like i just forgot that i was using vga instead of dvi with my old tiger setup.

k

#130158

You must be logged in to reply to this topic.