[wx-dev]: Draw a lot of text in a short amount of time
Armel Asselin
armel.asselin at orange.fr
Mon Jun 23 08:15:01 PDT 2008
Hi,
----- Original Message -----
From: "Angelina Geiger" <geiger at ems-wuensche.com>
Sent: Monday, June 23, 2008 4:49 PM
Subject: [wx-dev]: Draw a lot of text in a short amount of time
> Hello all,
>
> I have an application where I have to draw a lot of text within a short
> amount of time. It's a custom widget which clears the drawing area and
> draws some lines with text periodically (100-250ms).
>
> Now I'm experience an ugly performance problem. If my application runs the
> X-Server needs nearly 30% CPU time. I've found out that my OnPaint handler
> needs nearly 50ms. to draw and the most time is spent during
> wxMemoryDC::DrawText.
there are two possibilities:
- either you draw very few text and the cost per glyph is very high (maybe
some option/text rendering stuff slow), does it behave the same with any
font/rendering/quality options?
- or you draw large amount of text, from which potentially only a small
amount is really visible, in this case can you select the portions of text
that you draw? (specific lines, or portions within lines...)
> Is there anyone out there who has an idea how to make this really fast?
>
> Thanks in advance.
>
> Regards Angelina
HIH
Armel
More information about the wx-dev
mailing list