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?

  • \$\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.

| improve this answer | |
  • \$\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.