com.badlogic.gdx.graphics.FPSLogger Java Examples
The following examples show how to use
com.badlogic.gdx.graphics.FPSLogger.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Invaders.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
@Override public void create () { Array<Controller> controllers = Controllers.getControllers(); if (controllers.size > 0) { controller = controllers.first(); } Controllers.addListener(controllerListener); setScreen(new MainMenu(this)); music = Gdx.audio.newMusic(Gdx.files.getFileHandle("data/8.12.mp3", FileType.Internal)); music.setLooping(true); music.play(); Gdx.input.setInputProcessor(new InputAdapter() { @Override public boolean keyUp (int keycode) { if (keycode == Keys.ENTER && Gdx.app.getType() == ApplicationType.WebGL) { if (!Gdx.graphics.isFullscreen()) Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayModes()[0]); } return true; } }); fps = new FPSLogger(); }
Example #2
Source File: Engine.java From VuforiaLibGDX with MIT License | 5 votes |
@Override public void create () { fps = new FPSLogger(); mDisplay = new Display(); mDisplay.setVuforiaRenderer(vuforiaRenderer); setScreen(mDisplay); if (vuforiaRenderer != null) { vuforiaRenderer.onSurfaceCreated(); } isCreated = true; }
Example #3
Source File: CursorControlGame.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
@Override public void create () { fpsLogger = new FPSLogger(); // Initialize the connection to the buffer for event sending input = new BufferBciInput(500, false); while(!input.connect("localhost", 1972)) Gdx.app.log("CursorControlGame", "Could not connect to buffer!"); Gdx.app.log("CursorControlGame", "Connected to buffer!"); // Setup the screen objects cursor=new CursorScreen(nSymbs, input); matrix=new MatrixSpellerScreen(symbols,input); instruct=new InstructWaitKeyScreen(); blank=new BlankScreen(); exitScreen = new BlankScreenExit(); Gdx.graphics.setVSync(true); // try to force display locked updates setScreen(blank); // start the thread for the experiment controller startControllerThread(); // // TODO [] : switch to non-continuous render mode so we have more control over // // exactly when a frame gets re-drawn and the time it happens? //Gdx.graphics.setContinuousRendering(false); //Gdx.graphics.requestRendering(); }