androidandroid-studioaide-ide

Compiling game with Android Studio lags a lot


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?


Solution

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