lastTPF *= (invTimerRez / smoothCount); if (lastTPF < FastMath.FLT_EPSILON) lastTPF = FastMath.FLT_EPSILON;
lastTPF *= ( invTimerRez / smoothCount ); if ( lastTPF < FastMath.FLT_EPSILON ) { lastTPF = FastMath.FLT_EPSILON; }
    public void update() {        newTime = Sys.getTime();        if (oldTime == -1) {        	// For the first frame use 60 fps. This value will not be counted in further averages.        	// This is done so initialization code between creating the timer and the first        	// frame is not counted as a single frame on it's own.        	lastTPF = 1 / 60f;        	lastFPS = 1f / lastTPF;        	oldTime = newTime;        	return;        }        	                frameDiff = newTime - oldTime;        tpf[smoothIndex] = frameDiff;        oldTime = newTime;        smoothIndex--;        if (smoothIndex < 0) smoothIndex = tpf.length - 1;                lastTPF = 0.0f;        int smoothCount = 0;        for (int i = tpf.length; --i >= 0;) {            if (tpf[i] != -1) {            	lastTPF += tpf[i];            	smoothCount++;            }        }        lastTPF *= (invTimerRez / smoothCount);        if (lastTPF < FastMath.FLT_EPSILON) lastTPF = FastMath.FLT_EPSILON;                lastFPS = 1f / lastTPF;    }