public final void run()
			{
				long startNanos;
				double lastFrame = 0.0001, secondCounter = 0;
				while (true)
					{
						startNanos = System.nanoTime();
						
						tick(lastFrame);
						
						render();
						
						secondCounter += lastFrame = (System.nanoTime() - startNanos) / 1000000000.0;
						if (secondCounter > 1)
							{
								fps = (int) (1.0 / lastFrame);
								secondCounter = 0;
							}

					}
			}