List of usage examples for com.badlogic.gdx.math WindowedMean WindowedMean
public WindowedMean(int window_size)
From source file:com.badlogic.gdx.backends.android.CardBoardGraphics.java
License:Apache License
@Override public void onSurfaceCreated(EGLConfig config) { eglContext = ((EGL10) EGLContext.getEGL()).eglGetCurrentContext(); setupGL();// w w w . j av a 2 s . c om logConfig(config); updatePpi(); Mesh.invalidateAllMeshes(app); Texture.invalidateAllTextures(app); Cubemap.invalidateAllCubemaps(app); ShaderProgram.invalidateAllShaderPrograms(app); FrameBuffer.invalidateAllFrameBuffers(app); logManagedCachesStatus(); Display display = app.getWindowManager().getDefaultDisplay(); this.width = display.getWidth(); this.height = display.getHeight(); this.mean = new WindowedMean(5); this.lastFrameTime = System.nanoTime(); gl20.glViewport(0, 0, this.width, this.height); }