Hi Michael!
On 22 Feb 03 at 12:07, "Michael" (Michael Peuser h) wrote:
Michael> here is a small script.
Michael> Using Bitmaps instead of Images gave an breathtaking speed up
Michael> from 3 to = 22 fps (under Windows 2000) Also buffered mode with
Michael> direct canvas draw (which generally is already = very fast) will
Michael> again speed up things considerable (in contrast to expectations
That's expected. DeviceBitmaps are supposed to correspond to a video
device format in best possible way, hence the name. Images may ( and
usually do ) undergo conversion, which of course slows things a lot.
Michael> of "buffering") Last but not least: changing colors is SLOW.
Most probably this should be attributed to a cost of perl-to-C calls,
but anyway one can't do much about it.
Michael> I would be interested very much in UNIX results.
Here:
FreeBSD v4.3, XFree86 v4.0.3, AMD Athlon 650MHz, 800x800
Canvas Image DeviceBitmap
0 19 2 11
B 11 2 9
M 2 1 2
S 21 3 12
BM 2 1 2
BS 13 3 11
MS 3 2 2
BMS 2 1 2
On X though your benchmarking would be inaccurate, since you
are using Widget::repaint call - which can be cached, and
involves a client-server roundtrip. Explicit begin_paint/end_paint
should do better.
-- Sincerely, Dmitry --- www.karasik.eu.org --- Life ain't fair, but the root password helps. - BOFHReceived on Sat 22 Feb 2003 - 15:05:18 CET
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET