public void getFps() {
		delta = getTime() - currentTime;
		currentTime = getTime();
		lastLoopTime += delta;
		fps++;
		//System.out.println(delta);
		if(lastLoopTime >= 1000) {
			Camera.get().updateHeader();
			currentfps = fps;
			fps = 0;
			lastLoopTime = 0;
		}
	}