GCDC vs DC (was: Re: Automotive-type gauge)
Christian K
ckkart at hoc.net
Thu Aug 2 00:44:46 PDT 2007
Chris Mellon wrote:
> On 8/1/07, Andrea Gavana <andrea.gavana at gmail.com> wrote:
>> You might find my implementation of SpeedMeter useful:
>>
>> http://xoomer.alice.it/infinity77/eng/freeware.html#speedmeter
>>
>> I almost finished refactoring my web pages, so you might find some
>> troubles today or tomorrow... but the code is there :-D
>>
>
> Nice work as always Andrea. A one-liner wrapping the DC used for
> drawing in a wxGCDC gives very nice anti-aliasing, but makes it quite
> a bit slower. Maybe if I can find some time I'll work on a port that's
> optimized for wxGraphicsContext. I think it could end up quite faster
> than the raster based version.
What kind of optimization can be done when using GCDC instead of DC? Do you
think wx.lib.plot could be made faster, too? plot.py is basically using
DrawLine, DrawLineList, DrawText I think. Are there faster replacements?
Thanks, Christian
More information about the wxpython-users
mailing list