Damien Gerard wrote:

On Jan 22, 2008, at 10:20 PM, Marc Weustink wrote:

Luiz Americo Pereira Camara wrote:
Marc Weustink wrote:
Graeme Geldenhuys wrote:
On 22/01/2008, Giuliano Colla <[EMAIL PROTECTED]> wrote:
I gather that someone is already using GTK2, but I believe that he's not much demanding in terms of graphic appearance. My customers would run after me with a hammer if I'd dare to show them the current state of the
art. :-)

I've tried to use Lazarus/GTK2 for half a day now. It's horribly slow
as well, compared to GTK1.  For now I switched back to GTK1 and will
try GTK2 in a few months again.

I fear that won't change much, gtk2 itself is slower than gtk1 due to all clientside graphic stuff
Gtk2 is in fact slower than Gtk1, every one agree, but LCL/Gtk2 application are much slower than other Gtk2 applications

Compared to what apps ?



Personaly, I don't think the difference is so much. It is not like using a 3D engine to make transparent windows.
There is without a doubt.
We were speaking a few days ago the count of layers. As fpGUI, LCL is a layer as well, with its own overhead. Additionally with Lazarus, we often naturally create more widgets than needed (enjoy nested panels) plus some arrangements which may not be lead to the best performance, done by the widgetset and all its policies to ensure its good work.


Other possible reasons for slowness:

- Some code is shared between gtk1 and gtk2. This leads to use of deprecated functions although this has improved a lot in the last times like using the new g_signal functions, use of pango instead of gdk functions.
- Double buffering is disabled by default

For sure, some of us are tired to read this ml and to see "GTK2 is slower" "GTK2/LCL is slower" with infinite threads.

It is a fact and we have to accept that. We have to choose for balance, according to our needs and philosophy. Some of us think this is too slow for them ? They can use their own way if they want to and that's good. The future will tell if they were right. May day some day the different ways will lead to the same point. I think others would like to focus on what really matters: To improve the great work done for Lazarus.

I'm fine to say that because this is what i do, i provide patches (when is in my knowledge/interest scope), make bug reports with full examples, and create third party controls.

And while all this threading is gone i already implemented two full working LCL controls, improved cairo binding, created a OOP wrapper for cairo integrating with LCL (gtk1, gtk2, win32), support for svg files. To be released soon.

Luiz

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to