Home > Mobile >  Android graffiti performance
Android graffiti performance

Time:09-29

Why graffiti before every pen will redraw? How can I not to redraw?

CodePudding user response:

Because redrawing, you must remember all of the elements before, every time redrawing, these elements are painted again

CodePudding user response:

The size of the graffiti is not particularly big, can consider to draw on the Bitmap, and then use drawBitmap map to the View, but this will cause unable to withdraw, need to withdraw the function have to record every draw operation, at the same time according to the drawing operation every time to draw it again

CodePudding user response:

reference 1st floor BDMH response:
redrawing the because it is over, you must remember all of the elements before, every time redrawing, all these elements to draw up


So it is more and more poor performance is not?

CodePudding user response:

reference deep-sea fish's reply: 3/f
Quote: refer to 1st floor BDMH response:

Because redrawing, you must remember all of the elements before, every time redrawing, all these elements to draw up


So it is more and more poor performance is not?


The picture on the mobile phone is a frame of a frame painted, the UI changes to keep the last drawing instead more waste of performance and increase the amount of code

CodePudding user response:

What's worse may be a Bitmap
  • Related