Libgdx, FPS drop down after touch
Libgdx, FPS drop down after touch
I've write a very simple test with framework,
Here my code :
public class AndroidLauncher extends AndroidApplication {
private Handler handler;
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
initialize(new GameView(), config);
}
public static final class GameView implements ApplicationListener {
private GLProfiler profiler;
@Override
public void create() {
profiler = new GLProfiler(Gdx.graphics);
}
@Override
public void resize(int width, int height) {
}
@Override
public void render() {
DebugLog.d("fps "+ Gdx.graphics.getFramesPerSecond());
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void dispose() {
}
}
}
When i run in my Android phone ( android 4.4.2 , Huawei ) , first if i dont do any thing, Fps simply count 61 FPS , but if i touch on screen , Fps drop down like 56,..,45 .. 31,that mean after few second FPS is 31.
Anyone have experiment with this problem ?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.