I've made a game using libgdx. On m'y HTC One X, the game works good, even if there are some lags but only at the beginning. I wanted to try it on an older phone (well a less powerfull phone), a Samsung Galaxy Y, and on it my game is always very slow. How could I know how to fix it?


closed as too broad by Anko, MichaelHouse May 10 '14 at 23:33

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ optimize the entire thing, the older phone is just not powerful enough for the game \$\endgroup\$ – ratchet freak May 10 '14 at 20:52
  • \$\begingroup\$ Is there a more specific problem you have? This is too broad. \$\endgroup\$ – Anko May 10 '14 at 21:30

How could I fix it?

Well, first off, I would look "what" is actually making the game lag. For example, are you using sprites that are like 2048 pixels in y and x pixel then you should look forward to break it down.

Also, maybe it's an certain miss conception of code. Maybe there are some unnecessary function calls in your game loop?

You'd be better with using an profiler, in order to see where your programm starts to fall off in FPS.

I don't know the Samsung Galaxy Y, it's possible that it has not enough power to run a game.

  • \$\begingroup\$ My game is a simple Pacman, so the sprites are small. What profiler could I use? \$\endgroup\$ – Eko May 11 '14 at 6:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.