[Gambas-user] Height and width units?

Benoit Minisini gambas at ...1...
Wed Dec 10 03:21:22 CET 2008


On mardi 9 décembre 2008, Jussi Lahtinen wrote:
> >>  Anyhow the problem is GTK component, and I noticed an other problem
> >> too. GTK is about 40 times slower when talking about Draw.Picture() !!
> >
> > Mmm. GTK+ is slower than QT, but not 40 times. Can you show your code?
>
>  No problem, it's just stupid performance test / tile engine prototype.
>  See attached file (NayttoProto2-0.0.1.tar.gz).

That was some sort of weird behaviour of gb.gtk, that does not internally 
manage pictures like in gb.qt.

Now, with gb.gtk, using Picture.Load() ensures that the image is located in 
the server, so that using it for drawing is fast. Only Image.Load() keeps the 
image in the process memory.

Regards,

-- 
Benoit Minisini




More information about the User mailing list