Compiling game with Android Studio lags a lot

354 views Asked by At

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

2

There are 2 answers

0
GuiceU On BEST ANSWER

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.

1
Trevor On

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