i've write a small Average FPS added to the fps.xml,
it will take the average FPS on the tour... nothing special but it will help me to know when i add some "effect" what does they influence my FPS (on phone etc...)
<action name="fps_install" autorun="preinit" scope="local">
delayedcall(0.5,
addlayer(fps_display);
set(layer[fps_display],
type=text,
keep=true,
align='lefttop',
css=calc('font-size:'+(device.mobile AND stagescale LT 1.0 ? 24 : 12)+'px; color:#FFFFFF;'),
txtshadow='0 0 1 0x000000 1.0',
bg=false,
parent=STAGE,
vr=true,
enabled=false
);
addlayer(bench_display);
set(layer[bench_display],
type=text,
keep=true,
align='lefttop',
y='15',
css=calc('font-size:'+(device.mobile AND stagescale LT 1.0 ? 24 : 12)+'px; color:#FFFFFF;'),
txtshadow='0 0 1 0x000000 1.0',
bg=false,
parent=STAGE,
vr=true,
enabled=false
);
set(bench_cnt, 1);
set(average, calc((display.currentfps+0.5) BOR 0));
setinterval(fps_plugin, 0.25,
inc(bench_cnt);
calc(layer[fps_display].html, 'FPS: ' + ((display.currentfps+0.5) BOR 0));
add(average,calc((display.currentfps+0.5) BOR 0));
calc(layer[bench_display].html, 'MOY: ' + ((average/bench_cnt) BOR 0));
);
);
</action>
regards