[Lazarus] Lazarus IDE (GTK2) - flicker and slow redraws

Damien Gerard milipili at shikami.org
Tue Apr 29 11:04:09 CEST 2008


Le Apr 29, 2008 à 4:37 AM, Luiz Americo Pereira Camara a écrit :

> C Western wrote:
>> Luiz Americo Pereira Camara wrote:
>>
>>> Mattias Gaertner wrote:
>>>
>>>
>>>> But it is true, that the ExtTextOut function, which is used by  
>>>> SynEdit,
>>>> under gtk2 is at least 5 times slower than under gtk1. It uses  
>>>> pango
>>>> functions, which are great for full unicode support, but snail  
>>>> slow.
>>>> Probably the font system must be changed to cairo.
>>>>
>>>>
>>>>
>>> About slowness of synedit/gtk2: i noticed, in svn logs, you are  
>>> trying
>>> to optimize synedit paint by using canvas.cliprect. This won't  
>>> help much
>>> under gtk2 because cliprect is always = clientrect.
>>> Take a look into bug report 8871. I posted a patch and some notes.
>>>
>>> Luiz
>>>
>>>
>> Is PaintRect/ClipRect providing any useful information under gtk2?
>
> No.
>
>> I am using a custom control, and it seems to always repaint the  
>> entire screen, even if only a small part is needed (such as a  
>> disappearing hint window).
>>
>
> This is the current behavior. I provided a patch in bug report 8871  
> that
> you can try and see if your component works OK.
> For my side, VirtualTreeView is OK.



Since a few revision, the IDE under Windows is realy slow and Lazarus  
takes 20% when your cursor is in the source editor.
Is it related to this discussion ?


--
Damien Gerard
milipili at shikami.org

"Intelligence is 10 million rules."
    -- Douglas Lenat









More information about the Lazarus mailing list