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 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user