Recent

Author Topic: Lazarus Release 1.8.2 (with FPC 3.0.4)  (Read 107037 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #75 on: May 04, 2018, 08:19:45 am »
Does anyone have similar problems with the new Windows version?

I haven't spotted any issues so far.
Please provide a test program to demonstrate.

Just noticed a slowdown when opening Lazarus options. I couldn't remember it to be that slow!
« Last Edit: May 04, 2018, 08:21:42 am by Pascal »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

kpp

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #76 on: May 04, 2018, 09:48:21 am »
In the annex zipped a test project
1 frame 5 times in different tabsheets.
Under 1803 30 seconds to start. not measurable under 1709

I have created a 32bit application,
I do not really understand what goes wrong ...
Lazarus 1.8.2 / FPC 3.0.4 / Windows 10 pro

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #77 on: May 04, 2018, 10:03:45 am »
In the annex zipped a test project
1 frame 5 times in different tabsheets.
Under 1803 30 seconds to start. not measurable under 1709

I have created a 32bit application,
I do not really understand what goes wrong ...

Sorry can't get rx??? packages work with trunk. Can you build a test project without these extra packages?
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

wp

  • Hero Member
  • *****
  • Posts: 11855
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #78 on: May 04, 2018, 10:09:21 am »
No problem here (Win 10 1709, 64 bit, Laz trunk/fpc 3.0.4 32bit). I replaced each TCurrencyEdit by TFloatSpinEdit, though, because I did not want to install rxnew. In the attachment you can find my modified version of your demo. If it starts for you correctly, too, then the TCurrencyEdit or some other code in rxnew might be the culprit

kpp

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #79 on: May 04, 2018, 10:17:48 am »
Sorry here the RX Free Version
Lazarus 1.8.2 / FPC 3.0.4 / Windows 10 pro

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #80 on: May 04, 2018, 10:25:00 am »
Takes 65s to start with 1803 on i5 4440 >:D
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

kpp

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #81 on: May 04, 2018, 10:35:50 am »
The problem is 1803.
I did not find it in the debugger in the fpc.
One call per wincontrol takes a little longer in the sum then far too long.

But which call is it?

But thanks for testing, I have already doubted me ..
Lazarus 1.8.2 / FPC 3.0.4 / Windows 10 pro

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #82 on: May 04, 2018, 11:08:08 am »
I wrote a program with Lazarus that has a lot of pagecontrols and different tabsheets.
Under Windows 10 (version 1709) the program opens in under 1 second.
Under Windows 10 (version 1803) it takes about 2 minutes after leaving FormCreate until the mask opens.
When I throw out the tabsheets, it's getting faster.
Does anyone have similar problems with the new Windows version?

And in both cases the relevant directories are excluded in the antivirus? Since a new windows also means a different windows defender version

kpp

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #83 on: May 04, 2018, 11:31:46 am »
The Windows 10 (1803) PC is newly installed. No other software, no virus scanner, the Windows Defender is disabled ...
I put a showmessage in the "Formcreate".
The 30 seconds are between the showmessage and the appearance of the mask.
At the Showmessage, the program is already loaded.
« Last Edit: May 04, 2018, 12:14:01 pm by kpp »
Lazarus 1.8.2 / FPC 3.0.4 / Windows 10 pro

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #84 on: May 04, 2018, 12:13:32 pm »
And in both cases the relevant directories are excluded in the antivirus? Since a new windows also means a different windows defender version
No AV here and windows defender is disabled.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #85 on: May 04, 2018, 12:32:06 pm »
Try to run it on safe mode. If it is not slow, that means software only issue.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #86 on: May 04, 2018, 12:35:43 pm »
Try to run it on safe mode. If it is not slow, that means software only issue.

What do you mean with safe mode?
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #87 on: May 04, 2018, 01:02:04 pm »
On Win7 and XP, after you turn the power on then press [F8] (repeatedly). On Win 8, I don't know how to enter safe mode.

Quote
Safe mode is a diagnostic mode of a computer operating system (OS). It can also refer to a mode of operation by application software. In Windows, safe mode only allows essential system programs and services to start up at boot. Safe mode is intended to help fix most, if not all problems within an operating system. It is also widely used for removing rogue security software.
Source: Wikipedia

Safe mode is very useful for troubleshooting computer problems. When safe mode is on, only 'core' drivers are loaded and most autorun programs will be disabled. Not all but almost all autorun viruses and malwares can't run on safe mode.

If the program can run without massive slow down on safe mode, it is almost 100% not caused by the hardware. Then we can continue to the next inspections. You may need to turn off/on one by one the programs that listed in the autorun section, which can be shown using msconfig.exe.

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #88 on: May 04, 2018, 01:07:30 pm »
Hi

How many GDI Handles is your application creating, is it possible your reaching the limit on your windows installation. You can see how many in taskmanager under details for the running application.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

kpp

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 1.8.2 (with FPC 3.0.4)
« Reply #89 on: May 04, 2018, 02:00:56 pm »
The programm has 252 GDI-Handles. I do not think that's too much.
The Taskmanager has 1090.

I do not think safe mode will change anything.
(I will try later)

But I suspect that it is due to the GDI handles.
It could be, that the function to generate them, is slower under 1803.
Lazarus 1.8.2 / FPC 3.0.4 / Windows 10 pro

 

TinyPortal © 2005-2018