iirc the layouted text is cached as a SDL surface, but since the text changes with each message, it is relayouted each time.
While we are talking about the text rendering: other projects (like wesnoth) uses pango to layout text. It enables very rich text, including floating images and html like links. Moving to this or a similar library would greatly enhance our flexibility and would make a help system much richer and more pleasant to use.
iirc the layouted text is cached as a SDL surface, but since the text changes with each message, it is relayouted each time.
While we are talking about the text rendering: other projects (like wesnoth) uses pango to layout text. It enables very rich text, including floating images and html like links. Moving to this or a similar library would greatly enhance our flexibility and would make a help system much richer and more pleasant to use.