C (141/254)

From:Allan Odgaard
Date:06 Apr 00 at 02:04:16
Subject:SetAPen benchmarks...

Hi there,

Some days ago someone asked about SetAPen overhead. I've tested it and it's
approximately five times faster to do this:

if(GetAPen(rp) != mypen)
SetAPen(rp, mypen)

Than to always just setting the pen, assuming that the pen is already set.
This was on my 40MHz 040, testing both AGA and P96 for CLUT and non CLUT
screens. However, I could do around � million SetAPen's pr. second...

Regards Allan

------------------------------------------------------------------------
LOW RATE, NO WAIT!
Get a NextCard Visa, in 30 seconds! Get rates
as low as 2.9% Intro or 9.9% Fixed APR and no hidden fees.
Apply NOW!
http://click.egroups.com/1/2122/1/_/451227/_/954983702/
------------------------------------------------------------------------