final int loops = test_duration / fx_duration;
// Queue a set of effects which will use the data cache
for (int i = 0; i < loops ; i++) {
final char[] bulk = new char[5*1024*1024]; // let's leak 5MBs
g.fadeToggle(fx_duration, new Function() {
public void f() {
animationRunCounter ++;
bulk[0] = 0; // we keep it in handler
}
});