}
time = System.currentTimeMillis();
}
nextFrame = (long) (time + 1000.0 / (double) thread.getFramesPerSecond() + 0.5);
DancingFlame dancingFlame = flameStack.getFlame();
Flame renderFlame;
if (fftData != null) {
long currTime = time - timeRenderStarted;
short currFFT[] = fftData.getDataByTimeOffset(currTime);
Flame transforedFlame = transformer.createTransformedFlame(dancingFlame, currFFT, currTime, thread.getFramesPerSecond());
renderFlame = new FlamePreparer(prefs).createRenderFlame(transforedFlame);
}
else {
renderFlame = new FlamePreparer(prefs).createRenderFlame(dancingFlame.getFlame());
}
flames.add(renderFlame);
if (time >= timeRenderStarted + nextAction.getTime()) {
if (nextAction instanceof StopAction) {