Recent

Author Topic: Lazarus Running Very Slow under Qt4  (Read 9680 times)

sfeinst

  • Full Member
  • ***
  • Posts: 237
Lazarus Running Very Slow under Qt4
« on: March 23, 2011, 03:13:22 am »
I just downloaded the latest build (revision 29986) and compiled.  I am running PCLinuxOS latest version.  It has QT 4.7.1, KDE 4.6.1.  The Qt4Pas I am using was labeled:
bin-qt4pas-V2.1_Qt4.7.X (file dates of 11/29/2010).  Though I did try with the prior version as well.

I compiled Lazarus using:
make OPT="-dQT_NATIVE_DIALOGS" LCL_PLATFORM=qt bigide

Since doing this, Lazarus is running very slow (the UI is not really usable) especially when using controls and windows (as opposed to the text editor).

I tried recompiling with:
make bigide

which is using gtk2 and that version runs at a normal speed.  I loaded top and when running as QT4, the X process CPU usage spikes whenever any UI function is done within Lazarus.  I do not see this spike with gtk2.

Is anyone else running into an issue with the latest build and QT4?

Steve

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12152
  • FPC developer.
Re: Lazarus Running Very Slow under Qt4
« Reply #1 on: March 23, 2011, 09:58:00 am »
I compiled with QT 4.7 on x86_64 about a month ago, and had no such problems.

Didn't use native dialogs tho.
« Last Edit: March 23, 2011, 11:21:22 am by marcov »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4568
  • I like bugs.
Re: Lazarus Running Very Slow under Qt4
« Reply #2 on: March 23, 2011, 10:42:57 am »
I compiled Lazarus using:
make OPT="-dQT_NATIVE_DIALOGS" LCL_PLATFORM=qt bigide

Strange, I can't even build Lazarus "bigide". I get:

 Compiling tadraweropengl.pas
 tadraweropengl.pas(293,32) Error: Illegal expression
 tadraweropengl.pas(302,32) Error: Identifier not found "GL_FONT"
 tadraweropengl.pas(307) Fatal: There were 2 errors compiling module, stopping

"make all" works (with the other params included). Then Lazarus builds and runs normally.
Try running "make clean" first. You may have an old compiled unit somewhere.


Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Lazarus Running Very Slow under Qt4
« Reply #3 on: March 23, 2011, 10:56:22 am »
Quote
Compiling tadraweropengl.pas
 tadraweropengl.pas(293,32) Error: Illegal expression
 tadraweropengl.pas(302,32) Error: Identifier not found "GL_FONT"

Apparently, GLUT defines font symbols as constants on Windows, but as variables elsewhere (!)

Should be fixed as of r29996

sfeinst

  • Full Member
  • ***
  • Posts: 237
Re: Lazarus Running Very Slow under Qt4
« Reply #4 on: March 28, 2011, 01:18:27 am »
Just an update.  Lazarus still running slow after two more updates.  I changed to using Lazarus with gtk2 for now.  Apps compiled to use QT still run fine.  Seems to be just Lazarus itself that is having the problem.

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Lazarus Running Very Slow under Qt4
« Reply #5 on: March 28, 2011, 01:44:22 am »
I compiled yesterday snapshot 30024 and works well.

Code: [Select]
make PREFIX=/usr clean all LCL_PLATFORM=qt
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

sfeinst

  • Full Member
  • ***
  • Posts: 237
Re: Lazarus Running Very Slow under Qt4
« Reply #6 on: March 28, 2011, 11:26:22 pm »
I compiled yesterday snapshot 30024 and works well.

Code: [Select]
make PREFIX=/usr clean all LCL_PLATFORM=qt

I downloaded latest again.  Tried the exact command you used (minus the prefix=/usr).  Still having a problem.  Running Top, every time I click on part of the UI, X jumps to 75%+.  Very strange no one else is having the issue.  Must be something with my setup.  Just not sure what.

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Lazarus Running Very Slow under Qt4
« Reply #7 on: March 28, 2011, 11:39:02 pm »
I use Kubuntu (now 10.10, Qt 4.7.1) and Lazarus always worded well and very fast (also with Kubuntu versions 9.04, 9.10).
libQt4pas - maybe I have the same version, maybe I compiled myself, I don't remember.

I have ATI graphic card + proprietary driver and graph. acceleration works well.

Otherwise I have no idea how to help you.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4568
  • I like bugs.
Re: Lazarus Running Very Slow under Qt4
« Reply #8 on: March 29, 2011, 12:14:18 am »
I downloaded latest again.  Tried the exact command you used (minus the prefix=/usr).  Still having a problem.  Running Top, every time I click on part of the UI, X jumps to 75%+.  Very strange no one else is having the issue.  Must be something with my setup.  Just not sure what.

You should ask from Lazarus-qt mailing list, too.
It is a low traffic list but the posts are read by people who best know qt binding related issues.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

sfeinst

  • Full Member
  • ***
  • Posts: 237
Re: Lazarus Running Very Slow under Qt4
« Reply #9 on: March 30, 2011, 04:29:57 pm »
I'll look into the mailing list.  Thanks.

Just another update.  I tried playing around with KDE themes.  Using Oxygen, major problem using Lazarus.  But changing to Plastique, Lazarus, though still a little slow, became usable again.  I watched "top" and Oxygen brought X up to 75%, Plastique brought it to 43% and switching to GTK it used only 10%.  So GTK was still noticeable faster, but changing themes made a big difference in how Lazarus responded.

 

TinyPortal © 2005-2018