DF-2288. Fix tilemask drawing lag