private void mainLoop() {
		screen = new ScreenSprites();

		screen.init();

		timer = new Timer(Constants.FPS_UPDATE);
		fpsMeter = new FpsMeter();

		while (!Display.isCloseRequested()) {
			glLoadIdentity();
			glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

			int j = timer.ticksMissed;

			if (j > 1) fpsMeter.drop(j - 1);
			timer.update();

			for (int i = 0; i < j; i++) {
				screen.update();
			}

			fpsMeter.frame();
			float delta = timer.renderDeltaTime;
			screen.render(delta);
			Display.update();

			try {
				Display.sync(Constants.FPS_RENDER);
			} catch (Throwable t) {
				Log.e("Your graphics card driver does not support fullscreen properly.", t);
			}
		}
	}