Android Porter-Duff Compositing Performance

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?
+4
source share
1 answer
  • Yes, there are many faster ways: switching a game to opengl (or something like Unity if you want something higher) can be a very good idea. Renderscript is also a very good alternative that already has built-in multiple internal.

  • You should probably scan these things yourself, there are several dimensions to this type of topic, and the hardware moves quickly.

0
source

Source: https://habr.com/ru/post/1489795/


All Articles