I'm writing the code for my own live wallpaper. The wallpaper (among other things) has a background bitmap that rotates continuously. The bitmap is big (768x768px). Every screen refresh I do:
canvas.drawColor(Color.WHITE);
Matrix matrix = new Matrix();
matrix.setRotate(degrees, background.getWidth() / 2, background.getHeight() / 2);
canvas.drawBitmap(background, matrix, paint);
The wallpaper will run 12-18 FPS. Is this too heavy? Are there better ways to do this? Thank you in advance.