Despite not being a game, my app has several labels that gets updated several times a second:
text is changed, visible and color attributes are changed, position and size are changed.
How does Android handles redraws?
When I set label.Text, it gets redrawn on screen.
Does it get redrawn even if the new text is the same as the current one?
Is it worth to check if the new string is different from the previous one, and not set it to avoid a redraw?
Is it the same for visibility and color attributes, or does the graphic layer already performs these kind of checks?
text is changed, visible and color attributes are changed, position and size are changed.
How does Android handles redraws?
When I set label.Text, it gets redrawn on screen.
Does it get redrawn even if the new text is the same as the current one?
Is it worth to check if the new string is different from the previous one, and not set it to avoid a redraw?
Is it the same for visibility and color attributes, or does the graphic layer already performs these kind of checks?