Recent

Author Topic: Windows 11 Lazarus IDE lag  (Read 2831 times)

kinnon_2000

  • New Member
  • *
  • Posts: 22
Windows 11 Lazarus IDE lag
« on: November 11, 2023, 01:24:53 am »
Hello,

I've noticed a lag when resizing the IDE window as it tries to catch up with the mouse. The window jerks to the mouse position when dragging the edge. When resizing panes there are redraw trails. None of that is a big issue for me but no other applications on my system do this.

I've been a Lazarus user for a good few years, mostly on Windows, had a break from it, and returned to refresh and clean up my projects and start sharing them on GitHub as freelance folio examples.

I'm using Lazarus 2.2.6 (rev lazarus_2_2_6) FPC 3.2.2 x86_64-win64-win32/win64,  in a single-window mode with AnchorDockingDsgn 1.0 and DockedFormEditor 0.0 installed.
On Windows 11 Home Version 10.0.22621 Build 22621
My PC is not new, but decent and doesn't struggle with anything else I use. 32 GB RAM, gtx1060 graphics, SSD, ultrawide monitor, Intel I7-8700K CPU.

Any suggestions?
Is this a software rendering issue? Can it be easily resolved?

Thanks for any info,
Al


440bx

  • Hero Member
  • *****
  • Posts: 6155
Re: Windows 11 Lazarus IDE lag
« Reply #1 on: November 11, 2023, 04:01:41 am »
I've noticed a lag when resizing the IDE window as it tries to catch up with the mouse.
The lag is caused by the _number_ of subordinate/child windows that must be updated when the main window is resized.  As the number of windows increases, usually so does the lag.  The lag is also caused by how long it takes for each window to update.  If 2 or 3 windows are time consuming to render they will affect the entire rendering.

To summarize, the reasons for the lag are: 1. the likely presence of 1 or more windows whose painting is time consuming and 2. a fairly large number of windows.

Given the above, what you can do about it is, 1. not have windows with time consuming repaint procedures as part of the main window and 2. if possible, lower the number of windows being shown in the main window.  Unfortunately, these actions will usually have a negative impact on the global functionality of the program (because you will have sacrificed some information when eliminating windows.)

HTH.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018