Editor extemely slow

CodeLite installation/troubleshooting forum
OLiverr
CodeLite Enthusiast
Posts: 13
Joined: Sun Jan 18, 2009 9:30 pm
Location: Thüringen (Germany)
Contact:

Editor extemely slow

Post by OLiverr »

Hi,

I tried the new 2.0 version with Ubuntu 9.10 and the editor (i.e. scrolling and so on) is extremely slow. But it occurs only when there is text in the window, i.e. if I just insert newlines, the scrolling is smooth. This problem did't exist in the last 1.0 release and I wonder if I did something wrong?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Editor extemely slow

Post by eranif »

Can u build codelite from sources?

If you can, please change the code in scintillawx.cpp line 3112 and replace the function:

Code: Select all

void wxScintilla::OnPaint (wxPaintEvent& WXUNUSED(evt))
 {
#ifdef __WXGTK__
	// On Mac / Windows there is no real need for this
    wxBufferedPaintDC dc(this);
#else
	wxPaintDC dc(this);
#endif	
    m_swx->DoPaint (&dc, GetUpdateRegion().GetBox());
}
with this:

Code: Select all

void wxScintilla::OnPaint (wxPaintEvent& WXUNUSED(evt)) {
    wxPaintDC dc(this);
    m_swx->DoPaint (&dc, GetUpdateRegion().GetBox());
}
Does it help? (this is the only change relevant done in comparison between 1.0 and 2.0)
Note that undoing the change will cause a flicker on Ubuntu 9.10 when matched braces are highlighted.

EDIT: What is your Linux box configuration? I am using 9.10 (both 32 and 64 bit) myself with Compiz enabled - and it runs smoothly with no problems whatsoever.

Eran
Make sure you have read the HOW TO POST thread
OLiverr
CodeLite Enthusiast
Posts: 13
Joined: Sun Jan 18, 2009 9:30 pm
Location: Thüringen (Germany)
Contact:

Re: Editor extemely slow

Post by OLiverr »

I applied the change (you meant wxscintilla.cpp, didn't you?) but it has no effect. I also tried it with Compiz enabled but it's the same result.

I have an Ubuntu 9.10 32Bit, Pentium 4 3GHz HT, tested both the source and the .deb version. I also have a very high CPU use when I scroll but that's obvious, anyway, I think.
jale
CodeLite Curious
Posts: 8
Joined: Mon Nov 23, 2009 3:59 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Editor extemely slow

Post by jale »

Hi,

I tryed to work with kubuntu 9.10 (ubuntu with kde instead of gnome)

CodeLite was too slow, but the probem wasn't of codelite

In general, many things worked very slow, including konqueror and aplications painting on screen

Now, I went back to kubuntu 9.04 with the last codelite version and everything is working perfect


bye
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Editor extemely slow

Post by eranif »

Good to hear that, but I think that you should report this bug to Ubuntu (dont let this error go unnoticed)

Eran
Make sure you have read the HOW TO POST thread
Post Reply