From: Chris B. <Chr...@no...> - 2004-12-16 19:49:37
|
Alexey Shamrin wrote: > Why is GTKAgg is slower than GTK, but WXAgg is faster than WX? My question exactly. It's unlikely that that Wx has to be slower than WxAgg. In theory, at least, wx can take advantage of hardware accelerated drawing. On the other hand, wx does not know about NumPy arrays of either flavor, so if the Agg wrappers do, they could have an advantage there. Also, wx is known to be much slower with numarray arrays than Numeric arrays. I'd would certainly recommend that wx users stick with Numeric if they don't have a compelling reason to use numarray. Another issue is font caching. Is the wx back-end doing font caching? this made a huge difference in the wxPyPlot code. By the way, timing drawing on X is difficult, because the drawing calls return after the app has told X what to draw, not when it has been drawn. I suspect this might have something to do with the 1000 fps that was measured. I hope I'll get a chance to do some work on the wx backend someday.... -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |