summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSteve Cotton <steve@s.cotton.clara.co.uk>2010-02-13 12:32:28 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-13 12:39:13 +0100
commit040e336fb70e331983f9537b2d0daa2d8a962fce (patch)
treedd6f4613f6d51f7cb3eb8a716e0807424d90f4bc /README
parentcfc9b326d3c2ab3ea3f4187fa55e7a5645ee7d16 (diff)
downloadmana-client-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.gz
mana-client-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.bz2
mana-client-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.xz
mana-client-040e336fb70e331983f9537b2d0daa2d8a962fce.zip
Optimise TrueTypeFont::getWidth
Use the cache created by TTF::drawString, drops the cost of TTF::getWidth from 5% of runtime to 0.5%. It increases the cost of calculating line-wrapping in the BrowserBox, but overall it's a saving, even with the BrowserBox recalculating on every redraw.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions