Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-31 Thread Bernd
I cannot reproduce the extreme slowness anymore, no matter what I do. What I have now is only generally relatively high CPU usage compared to Qt and some stuttering when scrolling, but the extreme lag and sluggishness when simply typing text is gone. I don't know what caused it and I don't know

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-31 Thread Mattias Gaertner
On Sat, 31 Mar 2012 13:26:00 +0200 Bernd prof7...@googlemail.com wrote: I cannot reproduce the extreme slowness anymore, no matter what I do. What I have now is only generally relatively high CPU usage compared to Qt and some stuttering when scrolling, but the extreme lag and sluggishness

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-31 Thread Martin
On 31/03/2012 12:26, Bernd wrote: I cannot reproduce the extreme slowness anymore, no matter what I do. I fixed an issue, that affected the editor, but on all widgetset. However it did not match you description (dependency on windows size). It only happened if you had a lot of tabs open.

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-25 Thread Bernd
I have tried both defines. SynScrollBarWorkaround makes the horizontal scrollbar always visible and the effect on CPU usage is the same as if I made it intentionally visible. I'm not yet sure about the effect of SynNewScrollBarUpdate, I have not yet tried all combinations and I should make exact

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-25 Thread Martin
please attach your editor options Also still working on the assumption that it works ok in QT (otherwise same PC, same IDE. But bad on GTK So it must be code that interacts with the WS. Otherwise it had to be bad for both. On 25/03/2012 10:58, Bernd wrote: I have tried both defines.

[Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Bernd Kreuss
I recently updated my ancient Ubuntu Hardy to Oneiric which has GTK-2.24.6. Now I noticed that the SynEdit in the Lazarus IDE feels painfully sluggish. If I press a key there is a 0.2 seconds delay until it updates the screen. If I keep the key pressed (auto-repeat) then xorg will burn 60% and

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Martin
On 24/03/2012 20:02, Bernd Kreuss wrote: I recently updated my ancient Ubuntu Hardy to Oneiric which has GTK-2.24.6. Now I noticed that the SynEdit in the Lazarus IDE feels painfully sluggish. If I press a key there is a 0.2 seconds delay until it updates the screen. If I keep the key pressed

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Bernd
2012/3/24 Martin laza...@mfriebe.de: Compile the SynEdit package with the following defines SynDebug SynCaretDebug SYNSCROLLDEBUG VerboseSynEditInvalidate SynCheckPaintLock and get a logfile. Please also try if switching the overview gutter (right hand site) (Options/Editor/Display)

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Martin
On 24/03/2012 21:02, Bernd wrote: 2012/3/24 Martinlaza...@mfriebe.de: Compile the SynEdit package with the following defines SynDebug SynCaretDebug SYNSCROLLDEBUG VerboseSynEditInvalidate SynCheckPaintLock and get a logfile. Please also try if switching the overview gutter (right hand site)

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Martin
On 24/03/2012 21:02, Bernd wrote: 2012/3/24 Martinlaza...@mfriebe.de: Compile the SynEdit package with the following defines SynDebug SynCaretDebug SYNSCROLLDEBUG VerboseSynEditInvalidate SynCheckPaintLock and get a logfile. Please also try if switching the overview gutter (right hand site)

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Bernd
2012/3/24 Martin laza...@mfriebe.de: Weird. How about, if there is a horizontal scrollbar, but not a vertical? I can now reproduce it with a synedit in my own application. It seems it needs both scrollbars. none or only one scrollbar: sluggish, high CPU both scrollbars: smooth. It also

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Martin
On 24/03/2012 21:31, Martin wrote: On 24/03/2012 21:02, Bernd wrote: 2012/3/24 Martinlaza...@mfriebe.de: Compile the SynEdit package with the following defines SynDebug SynCaretDebug SYNSCROLLDEBUG VerboseSynEditInvalidate SynCheckPaintLock and get a logfile. Please also try if switching

Re: [Lazarus] IDE Editor incredibly slow on newer GTK2

2012-03-24 Thread Martin
On 24/03/2012 21:40, Martin wrote: On 24/03/2012 21:31, Martin wrote: On 24/03/2012 21:02, Bernd wrote: 2012/3/24 Martinlaza...@mfriebe.de: Compile the SynEdit package with the following defines SynDebug SynCaretDebug SYNSCROLLDEBUG VerboseSynEditInvalidate SynCheckPaintLock and get a