goManager = new GraphicsObjectsManager();
inputManager = InputManager.getInstance();
currentState = new MenuState(this, null);
currentState.init();
fpsText = new HUDText("", 10.0f, 0.8f, 0.8f, 1.0f, 0.9f, new Vector2f(1.0f, 1.0f), showFPS, goManager);
// use Gaussian function for weighting
float sum = 0.0f;
for (int i = 0; i < SMOOTHING_COUNT; ++i) {
double x = i / (SMOOTHING_COUNT - 1.0);