Example usage for com.badlogic.gdx.math WindowedMean WindowedMean

List of usage examples for com.badlogic.gdx.math WindowedMean WindowedMean

Introduction

In this page you can find the example usage for com.badlogic.gdx.math WindowedMean WindowedMean.

Prototype

public WindowedMean(int window_size) 

Source Link

Document

constructor, window_size specifies the number of samples we will continuously get the mean and variance from.

Usage

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);
}