I was not able to find any online articles or Google documentation regarding the relative layout performance of bitmap images using different Porter-Duff modes. What has become very obvious to me, while programming is that the traditional SRC / DST prefix modes are much faster (3-4 times faster) than the Android Mode.DARKEN, Mode.LIGHTEN, Mode.MULTIPLY modes. Using the latest modes can reduce the performance of the game engine from 40+ to about 13 FPS when rendering a light mask on a 720p screen.
My questions are as follows:
- Is there a faster way to compose images using the darken / lighten property than Porter-Duff modes? Should I Switch to OpenGL?
- Is there data on the relative speed of the various layout modes?
source share