Search code examples
javaandroidlibgdx

Basic libGDX project runs on 47-48 fps


I created empty(only with badlogic texture) libGDX project and tested it on my android device "Jiayu G2S". And it was running on 47-48 fps instead of 60. I thought my device is not fast enough for testing, but now i have half-finished game with a lot of drawings and calculations, but fps is still 47-48. What can be a problem? How can i increase it to 60?

LibGDX's version is 1.6.4

Testing on API16(Android 4.1.2)


Solution

  • I found out that my device's maximum display refresh rate is 47.49, it can't go higher.

    The smartest solution of this problem would be creating a seperate thread for game's logic and calculate how many times it should be executed before calling render() method. It will fix this problem for all display refresh rates.