Forums > Jitter

jit.qt.movie big framerate drop for time messages when rate != 0.

April 3, 2006 | 3:10 pm

it appears that if you send frequent time messages and rate is not set to 0, this results in a substantial framerate drop (from 50 to 30 on a G5 quad 2,5GHz in this example).

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 23 35 83 196617 0) read a movie;
#P button 6 35 15 0;
#P comment 23 100 117 196617 4) watch the framerate;
#P message 6 84 14 196617 1;
#P comment 23 68 117 196617 2) watch the framerate;
#P comment 23 52 83 196617 1) start the test;
#P comment 23 84 114 196617 3) set play rate to 1;
#P number 205 311 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 205 328 46 196617 / 1000.;
#P message 192 349 67 196617 gettimescale;
#P newex 159 328 43 196617 zl nth 1;
#P newex 159 348 31 196617 sel 1;
#P newex 159 292 103 196617 route read timescale;
#P comment 241 311 58 196617 timescale;
#P user jit.pwindow 66 318 82 62 0 1 0 0 1 0;
#P user jit.fpsgui 67 289 60 196617 0;
#P flonum 184 200 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 184 221 44 196617 rate $1;
#P newex 116 200 35 196617 * 0.6;
#P newex 116 141 46 196617 metro 2;
#N counter 0 0 1000;
#X flags 0 0;
#P newobj 116 160 89 196617 counter 0 0 1000;
#P toggle 6 52 15 0;
#P newex 6 221 57 196617 qmetro 20;
#P flonum 116 181 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 116 221 45 196617 time $1;
#P message 67 221 30 196617 read;
#P newex 67 269 102 196617 jit.qt.movie @rate 0;
#P connect 0 0 11 0;
#P connect 0 0 12 0;
#P connect 19 0 18 0;
#P connect 14 1 19 0;
#P connect 15 0 17 0;
#P connect 10 0 9 0;
#P hidden connect 23 0 10 0;
#P lcolor 1;
#P connect 16 1 15 0;
#P connect 14 0 16 0;
#P connect 0 1 14 0;
#P connect 18 0 8 1;
#P connect 8 0 2 0;
#P connect 3 0 8 0;
#P connect 6 0 3 0;
#P connect 7 0 6 0;
#P hidden connect 5 0 4 0;
#P lcolor 1;
#P hidden connect 5 0 7 0;
#P lcolor 1;
#P connect 4 0 0 0;
#P connect 17 0 0 0;
#P connect 9 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P hidden connect 25 0 1 0;
#P lcolor 1;
#P window clipboard copycount 27;

I’d say that on every bang jit.qt.movie evaluates the current frame something like

frame = previous frame + (current bang time – previous bang time) * rate * timescale

Jitter 1.5.2
Max 4.5.6
Mac OS X 10.4.5
4 x 2.5 PowerPC G5
1,5 Gb ram

Thanks,
Mattijs


Viewing 1 post (of 1 total)