Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » TheIde editor getting sluggish
TheIde editor getting sluggish [message #45404] Mon, 09 November 2015 13:50 Go to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
Hello, I would like to express that the editor of TheIde is remarkedly slower the last few months to a point that it gets mildly annoying when typing. I'm using it on 64 bit linux mint (KDE edition) on a core-i3 laptop with 8GB ram. The stable version doesn't seem to have the issue.
Re: TheIde editor getting sluggish [message #45407 is a reply to message #45404] Mon, 09 November 2015 15:10 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

I agree with that. I noticed the very same thing after upgrading theide few days ago (after not using it at all for about a year). I have an older laptop and there is visible pause between keystroke and the letter appearing on the screen, which is pretty confusing.

Is there some way to make theide faster? I guess it comes from the new c++ parser. Would it be possible to limit it's functionality? E.g. skip parsing standard libraries, I can easily live without that... Or scan the file only on ctrl+space, not after each key stroke. These could be optional choices, meant for people with low-end hardware like me Smile

Best regards,
Honza
Re: TheIde editor getting sluggish [message #45408 is a reply to message #45407] Mon, 09 November 2015 16:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Well, this is definitely something to investigate. Sorry for not noticing myself (perhaps my machine is too fast now...).

Just to bring things into perspective, what is your HW?

Anyway, the only thing assist++ related that could affect the speed is rescaning the file to display those "T++ points" in the left and overview of current files in Navigator. Anyway, it only happens when you stop typing for about 1 second. Can this be related?

It is also possible the problem is posix related, as I am now mostly working in win32...

Going to fire up that banana pi sitting on my desk to investigate...

Mirek

[Updated on: Mon, 09 November 2015 16:26]

Report message to a moderator

Re: TheIde editor getting sluggish [message #45409 is a reply to message #45408] Mon, 09 November 2015 16:42 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Hello mirek,

I experinced a very similar sluhishness while typing, too.
(on an old machine (Axthlon XP 3200 (32 bit)/radeon X1600pro) and a very decent one (AMD FX 6100 six core processor (64 bit)/Radeon R7 240, both on Arch Linux (kernel 4.3))

FYI, in my case, the problem was apparently related to the GTK backend/painting.

Regards.

Oblivion


[Updated on: Mon, 09 November 2015 18:31]

Report message to a moderator

Re: TheIde editor getting sluggish [message #45410 is a reply to message #45409] Mon, 09 November 2015 16:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
So, with X11 backend it seems OK?

Mirek

Re: TheIde editor getting sluggish [message #45412 is a reply to message #45410] Mon, 09 November 2015 16:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Tried with 2.4Ghz Celeron dual-core, with xfce, not delays when typing at all... Sad

(Have to wait for that 1Ghz ARM to finish the compilation... Smile
Re: TheIde editor getting sluggish [message #45414 is a reply to message #45410] Mon, 09 November 2015 18:30 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
mirek wrote on Mon, 09 November 2015 17:45
So, with X11 backend it seems OK?

Mirek



That's correct.
When I switched to X11 (which, by the way is the backend I am using since then, and frankly have no idea if it is still the case with GTK) everthing worked smoothly.

Regards,

Oblivion.


Re: TheIde editor getting sluggish [message #45416 is a reply to message #45404] Mon, 09 November 2015 21:00 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,

My hardware is older thinkpad (X200s) with Intel U2300 processor with @1.2GHz and 4Gb RAM.

Just tried with NOGTK version of theide and it feels significantly better. Still I can sometimes type faster than the screen updates, but it happens a lot less then with GTK version. So it really seems to be related to the backend.

Honza
Re: TheIde editor getting sluggish [message #45417 is a reply to message #45416] Mon, 09 November 2015 21:18 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

For me it works fine on KDE. My current configuration is Core i5 - 4 cores 2,9 Ghz with Nvidia Geforce. I see that you guys are using Radeon graphics card. I don't see the difference between TheIDE and Kate - KDE standard text editor. On my laptop with core i5 - 2 cores / 4 threads it works fine as well.

Quote:

When I switched to X11 (which, by the way is the backend I am using since then, and frankly have no idea if it is still the case with GTK) everthing worked smoothly.

GTK backend is default, because it is easier to develope/maintain CtrlCore that X11.

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: TheIde editor getting sluggish [message #45419 is a reply to message #45416] Tue, 10 November 2015 09:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
dolik.rce wrote on Mon, 09 November 2015 21:00
Hi,

My hardware is older thinkpad (X200s) with Intel U2300 processor with @1.2GHz and 4Gb RAM.

Just tried with NOGTK version of theide and it feels significantly better. Still I can sometimes type faster than the screen updates, but it happens a lot less then with GTK version. So it really seems to be related to the backend.

Honza


Perhaps it would be possible to test CodeEditor alone, just to isolate the possible cause? (With both backends).

Also, what is your GTK2.0 version?
Re: TheIde editor getting sluggish [message #45421 is a reply to message #45419] Tue, 10 November 2015 21:24 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

mirek wrote on Tue, 10 November 2015 09:26
dolik.rce wrote on Mon, 09 November 2015 21:00
Hi,

My hardware is older thinkpad (X200s) with Intel U2300 processor with @1.2GHz and 4Gb RAM.

Just tried with NOGTK version of theide and it feels significantly better. Still I can sometimes type faster than the screen updates, but it happens a lot less then with GTK version. So it really seems to be related to the backend.

Honza


Perhaps it would be possible to test CodeEditor alone, just to isolate the possible cause? (With both backends).

Also, what is your GTK2.0 version?


I have the latest GTK2 available, version 2.24.28. There is also GTK 3.18.2 installed on my computer, but that should not be interfering in any way.

Testing with simple single window app consisting of only CodeEditor, with the same C++ file as in TheIDE didn't show anything wrong. It works pretty fast. However, I was not able to make it use C++ syntax highlighting. Any hint on which CodeEditor method should I call and how?

Honza
Re: TheIde editor getting sluggish [message #45423 is a reply to message #45421] Tue, 10 November 2015 23:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
dolik.rce wrote on Tue, 10 November 2015 21:24
mirek wrote on Tue, 10 November 2015 09:26
dolik.rce wrote on Mon, 09 November 2015 21:00
Hi,

My hardware is older thinkpad (X200s) with Intel U2300 processor with @1.2GHz and 4Gb RAM.

Just tried with NOGTK version of theide and it feels significantly better. Still I can sometimes type faster than the screen updates, but it happens a lot less then with GTK version. So it really seems to be related to the backend.

Honza


Perhaps it would be possible to test CodeEditor alone, just to isolate the possible cause? (With both backends).

Also, what is your GTK2.0 version?


I have the latest GTK2 available, version 2.24.28. There is also GTK 3.18.2 installed on my computer, but that should not be interfering in any way.

Testing with simple single window app consisting of only CodeEditor, with the same C++ file as in TheIDE didn't show anything wrong. It works pretty fast. However, I was not able to make it use C++ syntax highlighting. Any hint on which CodeEditor method should I call and how?

Honza


#include <CtrlLib/CtrlLib.h>
#include <CodeEditor/CodeEditor.h>

using namespace Upp;

GUI_APP_MAIN {
	TopWindow win;
	CodeEditor ce;
	ce.Highlight("cpp");
	ce <<= "Hello world!";
	win.Add(ce.SizePos());
	win.Sizeable().Zoomable().Run();
}

Re: TheIde editor getting sluggish [message #45424 is a reply to message #45423] Tue, 10 November 2015 23:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
If you are there, it is worth testing with big file with "full" lines... (not empty spaces after line endings).
Re: TheIde editor getting sluggish [message #45425 is a reply to message #45408] Wed, 11 November 2015 03:47 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Mon, 09 November 2015 10:26
Well, this is definitely something to investigate. Sorry for not noticing myself (perhaps my machine is too fast now...).
...
It is also possible the problem is posix related, as I am now mostly working in win32...


I getting the same problem on a ~20-core Windows machine. I thought that this is a some kind of MT-problem (code doesn't scale well on many CPUs).

At some point I even wanted to profile TheIDE but ended up just using another editor instead ...


Regards,
Novo

[Updated on: Wed, 11 November 2015 03:48]

Report message to a moderator

Re: TheIde editor getting sluggish [message #45426 is a reply to message #45425] Wed, 11 November 2015 07:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Novo wrote on Wed, 11 November 2015 03:47
mirek wrote on Mon, 09 November 2015 10:26
Well, this is definitely something to investigate. Sorry for not noticing myself (perhaps my machine is too fast now...).
...
It is also possible the problem is posix related, as I am now mostly working in win32...


I getting the same problem on a ~20-core Windows machine. I thought that this is a some kind of MT-problem (code doesn't scale well on many CPUs).

At some point I even wanted to profile TheIDE but ended up just using another editor instead ...


TheIDE is basically single-threaded. There not much work to be done with other threads...

Mirek
Re: TheIde editor getting sluggish [message #45427 is a reply to message #45407] Wed, 11 November 2015 08:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
dolik.rce wrote on Mon, 09 November 2015 15:10

Is there some way to make theide faster? I guess it comes from the new c++ parser. Would it be possible to limit it's functionality? E.g. skip parsing standard libraries, I can easily live without that... Or scan the file only on ctrl+space, not after each key stroke. These could be optional choices, meant for people with low-end hardware like me Smile


Now, with more testing on Banana PI, thoughts...

TheIDE does "assist" things automatically on two occasions:

a) when you stop writting for one second - it then rescans the file to update Navigator map of file and T++ bullets

b) when you type ".", "->" or "::"

Is it possible that the 'slugish' feel is associated with these events?

I am asking because while writing on PI, I had delays caused with these, but when writing really quick, it is less apparent they happen.

I can certainly add options to suppress these events. Or perhaps even to switch Assist++ off for good...

Mirek
Re: TheIde editor getting sluggish [message #45431 is a reply to message #45427] Wed, 11 November 2015 17:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
There are now options to enable/disable parts of assist that could slow things down....

However, I will investigate some more, I am afraid that there are more reasons to this...
Re: TheIde editor getting sluggish [message #45434 is a reply to message #45431] Thu, 12 November 2015 00:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Identified possible issue in GTK backend - IsPainting was returning false positives, so instead of repainting single line, whole page got repainted.

Please try!
Re: TheIde editor getting sluggish [message #45450 is a reply to message #45434] Mon, 16 November 2015 06:23 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

mirek wrote on Thu, 12 November 2015 00:54
Identified possible issue in GTK backend - IsPainting was returning false positives, so instead of repainting single line, whole page got repainted.

Please try!


Hi Mirek,
Sorry it took me so long to reply, I've been to busy to test.

With this GTK bug fixed, it works great, even with all the Assist related options turned on.

One last annoying thing are the rescanning pop-ups when changing files and sometimes before building. They dissappear real quick, but it is kind of annoying to see a dialog flash on the that screen so fast that it can't even be read. What about displaying it only if the process takes longer then few seconds? I think it would improve the user experience.

Anyway, thanks for making theide fast again Wink
Honza
Re: TheIde editor getting sluggish [message #45451 is a reply to message #45450] Mon, 16 November 2015 11:01 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I suppose this dialog may be completely replaced by changing the state of Navigator control. It may be drawn semi-transparent or darkened or just disabled while rescanning is in progress. The only thing here is that change must not be too contrast as visual blinking may not be good for user.
And of course it must visualized be only when rescanning takes more than 3-4 seconds. In other case, rescanning must be done in background and without notification.

[Updated on: Mon, 16 November 2015 11:05]

Report message to a moderator

Previous Topic: Failed to auto setup build method in 32bit Win 7 with VC2015
Next Topic: Slow processing of compilation/linking messages
Goto Forum:
  


Current Time: Tue Mar 19 12:03:27 CET 2024

Total time taken to generate the page: 0.03539 seconds