public void registerTick() {
		// count Frames per second...
	    lastTime = curTime;
	    curTime = System.currentTimeMillis();
	    totalTime += curTime - lastTime;
	    if( totalTime > 1000 ) {
	    	totalTime -= 1000;
	         fps = frames;
	         frames = 0;
	         } 
	    ++frames;
	}