I am making a game using SurfaceView and I need a bitmap to have, for example, a size of 20x20, but this bitmap is reused in other parts of the code in different sizes, ie it would not be viable to have it already the proper dimensions because it would lose much quality. The problem I am facing is that the bitmap in its normal size the game runs between 45 and 50 FPS, already when I scale it, even already pre-scaled, the FPS drops dramatically to 10 to 20 FPS. My question 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
.
NOTE 2: If necessary, you do not need to request more information or snippets of code.