Fast Text Phrases with AngelFont()

Monkey Forums/Monkey Code/Fast Text Phrases with AngelFont()

Midimaster(Posted 2013) [#1]
This is a example how to speed up text phrases in monkey. Often the text phrases don't change. Than an image would be faster than DrawText().

PhotoText.Draw() draws a new text first with DrawText(), but saves also a screenshot of the text to a list. When the same text is drawn again, it re-finds the screenshot and draws the image instead of the characters.

PhotoText is 10 times faster than AngelFont and the speed does not depend on SETCOLOR().

The class is more a tuturial than a complete module...