Android Question Limit screen frame rate?

ilan

Expert
Licensed User
Longtime User
hi

when using my libgdx games on a 120hz phone it runs 2x faster. i have not used frame timing when i created those games long time ago and now on almost all new phones there is a 120hz and even more screen so after searching about this issue i found that there are 2 ways to fix it.

1, re-code your game (not relevant for me, don't want to invest this time on old games)
2, add frame limit for my games (it looks like it is possible on android 11+ phones)


does anyone know how to use it on b4a?

thanx

EDIT:

B4X:
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
config.foregroundFPS = 60;
initialize(new MyGdxGame(), config);

can those lines fix this issue?
 
Top