0

I have a really strange problem. When I use my phone, with the 'AIDE' app, to compile my game, it runs smooth at 60fps, but then, when I use Android Studio to compile, it runs at max 40fps, and gets reaaaally laggy.

I'm using the exact same code, so that shouldn't be the problem. Someone who have had a similar problem? Or anyone simply know the solution? All help will be appreciated :) /GuiceU

GuiceU
  • 1,030
  • 6
  • 19
  • 35

2 Answers2

0

Presumably you're running it in debug mode when you're using Android Studio, which will always make execution far slower.

Trevor
  • 10,903
  • 5
  • 61
  • 84
0

Found a solution, it was my code, apparently. The problem was that I was decoding an image Drawable to Bitmap on every update. But I don't know why it worked on AIDE.

GuiceU
  • 1,030
  • 6
  • 19
  • 35