Does XNA/MonoGame have a text caching mechanism, or has an open source one been implemented?
Posted
by
Casey
on Game Development
See other posts from Game Development
or by Casey
Published on 2012-11-24T20:03:43Z
Indexed on
2012/11/24
23:21 UTC
Read the original article
Hit count: 268
I'm playing around with MonoGame, and I've noticed the SpriteFont class draws static text very inefficiently. Each time the text is drawn the spacing is recalculated. This isn't a big deal on my quad core PC, but on mobile applications it might be a problem.
Before I go and program some text which caches the arrangement of its letters in an array and then feeds that array to the SpriteBatch, I would like to make sure there isn't something available to do this already, either in MonoGame itself or a class someone has implemented and made available for general use.
© Game Development or respective owner