[wxPython-users] GCDC vs DC
Christopher Barker
Chris.Barker at noaa.gov
Thu Aug 2 10:12:04 PDT 2007
Christian K wrote:
> What kind of optimization can be done when using GCDC instead of DC? Do you
> think wx.lib.plot could be made faster, too?
Probably not. Chris (another one) alluded to this, but I'll try to make
it more clear.
I'd love to be proved wrong, but in general, it appears that
wx.GraphicsContext is slower than wx.DC. It's certainly true that GCDC
is slower.
The optimizations that were referred to was using the raw
GraphicsContext, rather than GCDC. I don't know that it will ever get
faster than a native DC but GraphicsContext can give much nicer results
(and alpha blending, which is very nice)
There would be a lot to be gained by porting pyplot to GraphicsContext,
but speed is probably not it.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list