1
I’m making a game using Surfaceview and I need a bitmap to be , for example ,a size of 20x20 ,but this bitmap is reused in other parts of the code in different sizes ,that is, it would not be feasible to have the proper dimensions already because it would lose much quality. The problem I’m facing is that the bitmap in its normal size the game runs between 45 and 50 FPS ,already when I climb it , even already prescaled , the FPS drops dramatically to 10 to 20 FPS. My doubt is how to make when scaling the bitmap the FPS did not fall so much?
NOTE 1: I am using the native method Bitmap.createScaledBitmap
.
OBS 2: If necessary ,there is no request for more information or excerpts of the code.