Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-04

Lazarus running slow on KDE 4.6.2

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Steven Feinstein

I use PCLinuxOS. Up to date with:
QT: 4.7.2
KDE: 4.6.2

I run Lazarus from the latest SVN build. In my case it is 30245.

Just recently (builds for the last few weeks), I've run into a problem. Lazarus runs extremely slowly if I build using OPT="-dQT_NATIVE_DIALOGS" LCL_PLATFORM=qt. Using top, X jumps to 70-90% whenever I try to do something in the IDE related to the UI. If I do not use components (say a console application) the IDE runs fine.

I recompiled using GTK and the IDE runs fine as well. I played around with desktop Styles. If I use the Oxygen theme (which I do), it is terrible. X jumps to 70-90%. Which makes Lazarus unusable. If I change to Plastique, X jumps only to 40-50%. Which makes Lazarus mostly usable but slow.

GTK, X jumps posted on the Lazarus forum and no one else seemed to have this issue. They suggested posting here.

Hopefully someone will have an idea of what setting might be messing me up.

Thanks,

Steve

zeljko
to Steven Feinstein
Steven Feinstein wrote 24 lines
I use PCLinuxOS. Up to date with: QT: 4.7.2 KDE: 4.6.2 I run Lazarus from the latest SVN build. In my case it is 30245. Just recently (builds for the last few weeks), I've run into a problem. Lazarus runs extremely slowly if I build using OPT="-dQT_NATIVE_DIALOGS" LCL_PLATFORM=qt. Using top, X jumps to 70-90% whenever I try to do something in the IDE related to the UI. If I do not use components (say a console application) the IDE runs fine. I recompiled using GTK and the IDE runs fine as well. I played around with desktop Styles. If I use the Oxygen theme (which I do), it is terrible. X jumps to 70-90%. Which makes Lazarus unusable. If I change to Plastique, X jumps only to 40-50%. Which makes Lazarus mostly usable but slow. GTK, X jumps 10-15% at most. I posted on the Lazarus forum and no one else seemed to have this issue. They suggested posting here. Hopefully someone will have an idea of what setting might be messing me up.

I have no idea why it is so ... it runs fine here, qt-4.7.2, KDE-4.6.2 (Fedora 14 32 bit)+ remote X lazarus with qt-4.6.3 on KDE-3.5 (Fedora 3) runs fine also. Oxygen can slow down things, but it's weird that plastique is doing the same.
You can try to start lazarus from console with windows style and see if it's better, eg.
cd /to/your/lazarus/dir
./lazarus -style windows

What's your graphic card and driver ? Qt have problems with nvidia cards sometimes, but also I've seen problems with intel cards in combination with old intel drivers. If it's so, try vesa graphic driver and see if it's still slow.

zeljko

Steven Feinstein
to zeljko

I have an ATI Radeon. Running with Windows style is better than plastique and oxygen, but very ugly. Plastique is strange behavior. Apps I build using QT do not seem to have any X problems when they run. They never exceed 15% in top. It's just Lazarus itself.

zeljko wrote 70 lines
From: zeljko Subject: Re: [Qt] Lazarus running slow on KDE 4.6.2 To: "Items specific to the Qt widget set" Date: Saturday, April 9, 2011, 2:54 AM On Saturday 09 of April 2011 03:25:14 Steven Feinstein wrote: > I use PCLinuxOS.? Up to date with: > QT: 4.7.2 > KDE: 4.6.2 > > I run Lazarus from the latest SVN build.? In my case it is 30245. > > Just recently (builds for the last few weeks), I've run into a problem. > Lazarus runs extremely slowly if I build using OPT="-dQT_NATIVE_DIALOGS" > LCL_PLATFORM=qt.? Using top, X jumps to 70-90% whenever I try to do > something in the IDE related to the UI.? If I do not use components (say a > console application) the IDE runs fine. > > I recompiled using GTK and the IDE runs fine as well.? I played around with > desktop Styles.? If I use the Oxygen theme (which I do), it is terrible. > X jumps to 70-90%.? Which makes Lazarus unusable.? If I change to > Plastique, X jumps only to 40-50%.? Which makes Lazarus mostly usable but > slow. > > GTK, X jumps 10-15% at most. > > I posted on the Lazarus forum and no one else seemed to have this issue. > They suggested posting here. > > Hopefully someone will have an idea of what setting might be messing me up. I have no idea why it is so ... it runs fine here, qt-4.7.2, KDE-4.6.2 (Fedora 14 32 bit)+ remote X lazarus with qt-4.6.3 on KDE-3.5 (Fedora 3) runs fine also. Oxygen can slow down things, but it's weird that plastique is doing the same. You can try to start lazarus from console with windows style and see if it's better, eg. cd /to/your/lazarus/dir ./lazarus -style windows What's your graphic card and driver ? Qt have problems with nvidia cards sometimes, but also I've seen problems with intel cards in combination with old intel drivers. If it's so, try vesa graphic driver and see if it's still slow. zeljko _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
zeljko
to Steven Feinstein
Steven Feinstein wrote
I have an ATI Radeon. Running with Windows style is better than plastique and oxygen, but very ugly. Plastique is strange behavior. Apps I build using QT do not seem to have any X problems when they run. They never exceed 15% in top. It's just Lazarus itself.

What driver do you use ? fglrx or radeon ?
Try this and give feedback please (just comment UpdateMouseHint in Application.Idle):
Index: lcl/include/application.inc
=================================================================== --- lcl/include/application.inc (revision 28265)
+++ lcl/include/application.inc (working copy)
@@ -365,7 +365,7 @@
begin

   ReleaseComponents;
   ProcessAsyncCallQueue;

- UpdateMouseHint(GetControlAtMouse);
+ // UpdateMouseHint(GetControlAtMouse);

   Done := True;
   if (FIdleLockCount=0) then begin

zeljko

Show quoted text 97 lines
--- On Sat, 4/9/11, zeljko wrote: > From: zeljko > Subject: Re: [Qt] Lazarus running slow on KDE 4.6.2 > To: "Items specific to the Qt widget set" > Date: Saturday, April 9, 2011, 2:54 AM > On Saturday 09 of April 2011 03:25:14 > > Steven Feinstein wrote: > > I use PCLinuxOS. Up to date with: > > QT: 4.7.2 > > KDE: 4.6.2 > > > > I run Lazarus from the latest SVN build. In my > > case it is 30245. > > > Just recently (builds for the last few weeks), I've > > run into a problem. > > > Lazarus runs extremely slowly if I build using > > OPT="-dQT_NATIVE_DIALOGS" > > > LCL_PLATFORM=qt. Using top, X jumps to 70-90% > > whenever I try to do > > > something in the IDE related to the UI. If I do > > not use components (say a > > > console application) the IDE runs fine. > > > > I recompiled using GTK and the IDE runs fine as > > well. I played around with > > > desktop Styles. If I use the Oxygen theme (which > > I do), it is terrible. > > > X jumps to 70-90%. Which makes Lazarus > > unusable. If I change to > > > Plastique, X jumps only to 40-50%. Which makes > > Lazarus mostly usable but > > > slow. > > > > GTK, X jumps 10-15% at most. > > > > I posted on the Lazarus forum and no one else seemed > > to have this issue. > > > They suggested posting here. > > > > Hopefully someone will have an idea of what setting > > might be messing me up. > > I have no idea why it is so ... it runs fine here, > qt-4.7.2, KDE-4.6.2 (Fedora > 14 32 bit)+ remote X lazarus with qt-4.6.3 on KDE-3.5 > (Fedora 3) runs fine > also. Oxygen can slow down things, but it's weird that > plastique is doing the > same. > You can try to start lazarus from console with windows > style and see if it's > better, eg. > cd /to/your/lazarus/dir > ./lazarus -style windows > > What's your graphic card and driver ? Qt have problems with > nvidia cards > sometimes, but also I've seen problems with intel cards in > combination with > old intel drivers. If it's so, try vesa graphic driver and > see if it's still > slow. > > zeljko > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
Steven Feinstein
to zeljko

I am (according to Synaptic) using:
x11-driver-video-radeonhd the X.org driver for AMD / ATI r5xx/r6xx chipsets (Radeon X1xxx and HD 2xxx cards)

I commented the line and rebuilt. No change in how it ran.

Thanks,
Steve

zeljko wrote 166 lines
From: zeljko Subject: Re: [Qt] Lazarus running slow on KDE 4.6.2 To: "Items specific to the Qt widget set" Date: Saturday, April 9, 2011, 1:40 PM On Saturday 09 of April 2011 16:17:46 Steven Feinstein wrote: > I have an ATI Radeon.? Running with Windows style is better than plastique > and oxygen, but very ugly.? Plastique is usable at least.? But strange > behavior.? Apps I build using QT do not seem to have any X problems when > they run.? They never exceed 15% in top.? It's just Lazarus itself. What driver do you use ? fglrx or radeon ? Try this and give feedback please (just comment UpdateMouseHint in Application.Idle): Index: lcl/include/application.inc =================================================================== --- lcl/include/application.inc??? (revision 28265) +++ lcl/include/application.inc??? (working copy) @@ -365,7 +365,7 @@ begin ???ReleaseComponents; ???ProcessAsyncCallQueue; -? UpdateMouseHint(GetControlAtMouse); +? // UpdateMouseHint(GetControlAtMouse); ???Done := True; ???if (FIdleLockCount=0) then begin zeljko > > --- On Sat, 4/9/11, zeljko wrote: > > From: zeljko > > Subject: Re: [Qt] Lazarus running slow on KDE 4.6.2 > > To: "Items specific to the Qt widget set" > > Date: Saturday, April 9, 2011, 2:54 AM > > On Saturday 09 of April 2011 03:25:14 > > > > Steven Feinstein wrote: > > > I use PCLinuxOS.? Up to date with: > > > QT: 4.7.2 > > > KDE: 4.6.2 > > > > > > I run Lazarus from the latest SVN build.? In my > > > > case it is 30245. > > > > > Just recently (builds for the last few weeks), I've > > > > run into a problem. > > > > > Lazarus runs extremely slowly if I build using > > > > OPT="-dQT_NATIVE_DIALOGS" > > > > > LCL_PLATFORM=qt.? Using top, X jumps to 70-90% > > > > whenever I try to do > > > > > something in the IDE related to the UI.? If I do > > > > not use components (say a > > > > > console application) the IDE runs fine. > > > > > > I recompiled using GTK and the IDE runs fine as > > > > well.? I played around with > > > > > desktop Styles.? If I use the Oxygen theme (which > > > > I do), it is terrible. > > > > > X jumps to 70-90%.? Which makes Lazarus > > > > unusable.? If I change to > > > > > Plastique, X jumps only to 40-50%.? Which makes > > > > Lazarus mostly usable but > > > > > slow. > > > > > > GTK, X jumps 10-15% at most. > > > > > > I posted on the Lazarus forum and no one else seemed > > > > to have this issue. > > > > > They suggested posting here. > > > > > > Hopefully someone will have an idea of what setting > > > > might be messing me up. > > > > I have no idea why it is so ... it runs fine here, > > qt-4.7.2, KDE-4.6.2 (Fedora > > 14 32 bit)+ remote X lazarus with qt-4.6.3 on KDE-3.5 > > (Fedora 3) runs fine > > also. Oxygen can slow down things, but it's weird that > > plastique is doing the > > same. > > You can try to start lazarus from console with windows > > style and see if it's > > better, eg. > > cd /to/your/lazarus/dir > > ./lazarus -style windows > > > > What's your graphic card and driver ? Qt have problems with > > nvidia cards > > sometimes, but also I've seen problems with intel cards in > > combination with > > old intel drivers. If it's so, try vesa graphic driver and > > see if it's still > > slow. > > > > zeljko > > > > _______________________________________________ > > Qt mailing list > > > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
zeljko
to Steven Feinstein
Steven Feinstein wrote
I am (according to Synaptic) using: x11-driver-video-radeonhd the X.org driver for AMD / ATI r5xx/r6xx chipsets (Radeon X1xxx and HD 2xxx cards)

That says nothing. Please attach /var/log/XOrg.0.log .

I commented the line and rebuilt. No change in how it ran.

Strange ... what happens if you completely close source editor , so only lazarus main IDE win, object inspector and messages win are opened ?

Show quoted text 210 lines
Thanks, Steve --- On Sat, 4/9/11, zeljko wrote: > From: zeljko > Subject: Re: [Qt] Lazarus running slow on KDE 4.6.2 > To: "Items specific to the Qt widget set" > Date: Saturday, April 9, 2011, 1:40 PM > On Saturday 09 of April 2011 16:17:46 > > Steven Feinstein wrote: > > I have an ATI Radeon. Running with Windows style > > is better than plastique > > > and oxygen, but very ugly. Plastique is usable > > at least. But strange > > > behavior. Apps I build using QT do not seem to > > have any X problems when > > > they run. They never exceed 15% in top. > > It's just Lazarus itself. > > What driver do you use ? fglrx or radeon ? > Try this and give feedback please (just comment > UpdateMouseHint in > Application.Idle): > Index: lcl/include/application.inc > =================================================================== > --- lcl/include/application.inc (revision > 28265) > +++ lcl/include/application.inc (working > copy) > @@ -365,7 +365,7 @@ > > begin > > ReleaseComponents; > ProcessAsyncCallQueue; > - UpdateMouseHint(GetControlAtMouse); > + // UpdateMouseHint(GetControlAtMouse); > > Done := True; > if (FIdleLockCount=0) then begin > > > zeljko > > > --- On Sat, 4/9/11, zeljko > > wrote: > > > From: zeljko > > > Subject: Re: [Qt] Lazarus running slow on KDE > > 4.6.2 > > > > To: "Items specific to the Qt widget set" > > > > > Date: Saturday, April 9, 2011, 2:54 AM > > > > On Saturday 09 of April 2011 03:25:14 > > > > > > Steven Feinstein wrote: > > > > I use PCLinuxOS. Up to date with: > > > > QT: 4.7.2 > > > > KDE: 4.6.2 > > > > > > > > I run Lazarus from the latest SVN > > build. In my > > > > case it is 30245. > > > > > > > Just recently (builds for the last few > > weeks), I've > > > > run into a problem. > > > > > > > Lazarus runs extremely slowly if I build > > using > > > > OPT="-dQT_NATIVE_DIALOGS" > > > > > > > LCL_PLATFORM=qt. Using top, X jumps to > > 70-90% > > > > whenever I try to do > > > > > > > something in the IDE related to the > > UI. If I do > > > > not use components (say a > > > > > > > console application) the IDE runs fine. > > > > > > > > I recompiled using GTK and the IDE runs fine > > as > > > > well. I played around with > > > > > > > desktop Styles. If I use the Oxygen > > theme (which > > > > I do), it is terrible. > > > > > > > X jumps to 70-90%. Which makes > > Lazarus > > > > unusable. If I change to > > > > > > > Plastique, X jumps only to 40-50%. > > Which makes > > > > Lazarus mostly usable but > > > > > > > slow. > > > > > > > > GTK, X jumps 10-15% at most. > > > > > > > > I posted on the Lazarus forum and no one > > else seemed > > > > to have this issue. > > > > > > > They suggested posting here. > > > > > > > > Hopefully someone will have an idea of what > > setting > > > > might be messing me up. > > > > > > I have no idea why it is so ... it runs fine > > here, > > > > qt-4.7.2, KDE-4.6.2 (Fedora > > > 14 32 bit)+ remote X lazarus with qt-4.6.3 on > > KDE-3.5 > > > > (Fedora 3) runs fine > > > also. Oxygen can slow down things, but it's weird > > that > > > > plastique is doing the > > > same. > > > You can try to start lazarus from console with > > windows > > > > style and see if it's > > > better, eg. > > > cd /to/your/lazarus/dir > > > ./lazarus -style windows > > > > > > What's your graphic card and driver ? Qt have > > problems with > > > > nvidia cards > > > sometimes, but also I've seen problems with intel > > cards in > > > > combination with > > > old intel drivers. If it's so, try vesa graphic > > driver and > > > > see if it's still > > > slow. > > > > > > zeljko > > > > > > _______________________________________________ > > > Qt mailing list > > > > > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > > > _______________________________________________ > > Qt mailing list > > > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt