remixed-dungeon icon indicating copy to clipboard operation
remixed-dungeon copied to clipboard

Text rendering system needs refactoring

Open Mikhael-Danilov opened this issue 6 years ago • 2 comments

Mikhael-Danilov avatar Aug 16 '18 19:08 Mikhael-Danilov

@Mikhael-Danilov Hi, could you provide more specific information on this issue?

phistr avatar Feb 21 '19 13:02 phistr

@phistr Hi!

  • It is over complicated: SystemText and Text are in fact two separate rendering pipelines.
  • It is slow: SystemText caches rendered text on per line basis, so each new line involves calls to Canvas.drawText which is slow.
  • SystemText render text with visible artifacts ( look close at bottom of 'у' glyph for example )

Mikhael-Danilov avatar Feb 23 '19 15:02 Mikhael-Danilov