Please run "gtkperf" program on your end and give results (run it locally).<br><br>If you don't have it in packages, just get libgtk2-dev and compile from sources (./configure && make && make install [as root]).<br>
<br>If you get more than ~10 seconds, something is wrong with your setup (driver/X/theme). I get ~5s here with the OSS driver and EXA. Gtk2 flies quite fast.<br><br><div class="gmail_quote">2008/11/10 Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graemeg.lists@gmail.com">graemeg.lists@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, Nov 10, 2008 at 7:39 PM, Mark Morgan Lloyd<br>
<div class="Ih2E3d"><<a href="mailto:markMLl.lazarus@telemetry.co.uk">markMLl.lazarus@telemetry.co.uk</a>> wrote:<br>
</div><div class="Ih2E3d">> x86 800MHz laptop Debian "Lenny" 0.9.26/2.2.2<br>
> local<br>
> gtk 3.7<br>
> gtk2 13.7<br>
> remote<br>
> gtk 10.0<br>
> gtk2 60.4<br>
<br>
<br>
</div>Wow, even local GTK2 is *way* slower than GTK1. So I really wasn't<br>
imagining it when I switch Lazarus IDE to GTK2.<br>
<br>
I was curious to see what it does on my system. So I created a test<br>
based on what you said. I used GTK1, GTK2 and fpGUI toolkit. In all<br>
three tests all component where the exact same size and contained the<br>
exact same text. Here are my results from the following code:<br>
<br>
-----------------------------------------------<br>
procedure TForm1.Button1Click(Sender: TObject);<br>
var<br>
i: integer;<br>
s: TDateTime;<br>
e: TDateTime;<br>
begin<br>
s := Now;<br>
for i := 1 to 1000 do<br>
begin<br>
if (i mod 2) = 0 then<br>
Panel1.Color := clRed<br>
else<br>
Panel1.Color := clBlue;<br>
Application.ProcessMessages;<br>
end;<br>
e := Now - s;<br>
writeln('Duration: ' + FormatDateTime('nn:ss.zz', e));<br>
end;<br>
-----------------------------------------------<br>
<br>
Clearly GTK2 is as speedy as a snail !!! :-(<br>
<br>
<br>
graemeg@graemeg-laptop:speed$ ./project1_gtk1<br>
Duration: 00:00.229<br>
Duration: 00:00.219<br>
Duration: 00:00.231<br>
Duration: 00:00.238<br>
Duration: 00:00.306<br>
graemeg@graemeg-laptop:speed$ ./project1_gtk2<br>
Duration: 00:01.127<br>
Duration: 00:01.065<br>
Duration: 00:01.158<br>
Duration: 00:01.055<br>
Duration: 00:01.119<br>
graemeg@graemeg-laptop:speed$ ./project1_fpgui<br>
Duration: 00:00.275<br>
Duration: 00:00.275<br>
Duration: 00:00.274<br>
Duration: 00:00.276<br>
Duration: 00:00.276<br>
<div class="Ih2E3d"><br>
<br>
<br>
Regards,<br>
- Graeme -<br>
<br>
<br>
_______________________________________________<br>
fpGUI - a cross-platform Free Pascal GUI toolkit<br>
<a href="http://opensoft.homeip.net/fpgui/" target="_blank">http://opensoft.homeip.net/fpgui/</a><br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Feel the power of Opensource.<br>Feel the power of Free Pascal.<br>