bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/28186] Graphics2D.drawString slowdown


From: sven at physto dot se
Subject: [Bug awt/28186] Graphics2D.drawString slowdown
Date: 13 Jul 2006 22:29:09 -0000


------- Comment #2 from sven at physto dot se  2006-07-13 22:29 -------
Aha.. ok. I first thought this was a more general complaint "drawSting is
slower than before!", which it is. drawString used to use Pango, now it uses
TextLayout, which is now implemented (mostly). So I'm not sure drawString will
ever be quite as fast as it was before :/. But at least some optimizations have
been done.
(If you draw the same string a lot you should use a TextLayout and draw that
using the method in TextLayout. That saves us re-layouting the string every
time and gives quite good performance. (One optimization I'm considering is
caching the created TextLayouts).

Anyway.. This isn't what you're reporting here, since your problem is that the
thing getting incrementally slower. I'll check it out. But no doubt it's got
something to do with this new impl of drawString.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28186





reply via email to

[Prev in Thread] Current Thread [Next in Thread]