|
|
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » TheIde editor getting sluggish
|
Re: TheIde editor getting sluggish [message #45407 is a reply to message #45404] |
Mon, 09 November 2015 15:10   |
|
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 
Best regards,
Honza
|
|
|
Re: TheIde editor getting sluggish [message #45408 is a reply to message #45407] |
Mon, 09 November 2015 16:26   |
 |
mirek
Messages: 14255 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 #45416 is a reply to message #45404] |
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
|
|
|
|
|
Re: TheIde editor getting sluggish [message #45421 is a reply to message #45419] |
Tue, 10 November 2015 21:24   |
|
mirek wrote on Tue, 10 November 2015 09:26dolik.rce wrote on Mon, 09 November 2015 21:00Hi,
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   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
dolik.rce wrote on Tue, 10 November 2015 21:24mirek wrote on Tue, 10 November 2015 09:26dolik.rce wrote on Mon, 09 November 2015 21:00Hi,
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 #45425 is a reply to message #45408] |
Wed, 11 November 2015 03:47   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Mon, 09 November 2015 10:26Well, 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 #45427 is a reply to message #45407] |
Wed, 11 November 2015 08:11   |
 |
mirek
Messages: 14255 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 
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 #45450 is a reply to message #45434] |
Mon, 16 November 2015 06:23   |
|
mirek wrote on Thu, 12 November 2015 00:54Identified 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 
Honza
|
|
|
Re: TheIde editor getting sluggish [message #45451 is a reply to message #45450] |
Mon, 16 November 2015 11:01   |
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
|
|
|
Goto Forum:
Current Time: Tue Apr 29 09:34:29 CEST 2025
Total time taken to generate the page: 0.01202 seconds
|
|
|