[linux-audio-dev] GTK performance?
Jens M Andreasen
jens.andreasen at chello.se
Thu Apr 28 13:48:21 UTC 2005
On Thu, 2005-04-28 at 14:08 +0100, Steve Harris wrote:
> > Still leaves me wondering how on earth gtk can use the equivalence of a
> > 200 Mhz pentium to figure out that nothing happened?
>
> Well, determinging if two floating point numbers are the same is a non
> trivial operation. There can be multiple encodings of, say, 1.3 depending
> on how you got there.
double x;
...
!(x > 1.3) && !(x < 1.3) ? ... : ... ;
>
> I suspect they take a conservative view and always redraw if thye cant tell
> thier the same.
Still, the pixmap is fairly small, 20 × 20 perhaps. It shouldn't take
all day :)
--
(
)
c[] // Jens M Andreasen
More information about the Linux-audio-dev
mailing list