[SOLVED] Very slow editor - independent of settings

Working on new editor enhancements?
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

[SOLVED] Very slow editor - independent of settings

Post by dangerfreak »

Hello,

I know this topic was discussed earlier, but I didn't find a solution for the problem yet:
marc_256 wrote: Tue Dec 24, 2019 4:05 pm ...Load file 4min 05sec
Move mouse to a line you want to edit, and click left mouse button,
about 2min 15sec before any IDE reaction ...
That's exactly my problem (Purebasic 6.12, Windows 10, 64bit, 16 GB RAM, CPU 12th Gen Intel Core i7-12650Hm, new SSD-drive with plenty of space). My source code only is <5000 lines, and I tried to pinpoint the reason. I have several computers (all: Windows 10, 64 bit) and the editor is very slow on all of them - except of one. But just this one is the slowest computer with the lowest RAM! So I had the idea, to export the settings/preferences and to import it to my other computers. Unfortunately, nothing changed. Then I copied the "PureBasic.prefs" of the purebasic directory (from the fast to all slow working computers) . No effect.

That means, that Purebasic or its settings have nothing to do with the problem. So please, don't advice me to change any preferences, because it won't work, there's absolutely no doubt about it.

In my opinion, it's a Windows problem, like here: viewtopic.php?t=74256 (first posting). Unfortunately, the "memory integrity" setting didn't work for me (it's off on all slow working computers).

Any ideas?

PS: All my computers have more or less similar Windows settings - as far as I know (and same antivirus software etc.). At least I see no difference.
Last edited by dangerfreak on Thu Oct 31, 2024 10:45 pm, edited 2 times in total.
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Very slow editor - independent to settings

Post by marc_256 »

Hi dangerfreak,

From that day,
I don't use the PB IDE anymore.
I use Notepad++ for all my work now.

But, as I remember ...
The problem was when I used large programs, and if I used a lot of DataSection data.

How big is your program ?
and the data section data ?
Do you use 3D ogre at the same time ?


Marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

Source code is 297kb (<5000 lines), and I have only a few datasection lines . Even without them, the editor is slow. I didn't use 3d.

I just noticed another interesting thing: I started Purebasic and didn't load a project, the editor is EMPTY. Then I clicked on the menu "File -> Preferences" - it takes 10 seconds until the preferences window appears! On my only fast working computer, this only takes one second.

So it is obvious, that the problem also is independent of the source code.
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Very slow editor - independent of settings

Post by marc_256 »

Then, can it be that the antivirus program is the problem ?
I don't remember what antivirus I used that days.
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

All my computers have the same antivirus/firewall software: none! Only the built-in windows defender/firewall, same settings on all computers. When I turn it off, it has no effect on the Purebasic editor speed.
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Very slow editor - independent of settings

Post by marc_256 »

I'm not a windows guru at all ...
but when you open the TaskManager,
you can check/see the cpu use ...

I don't know, is there something when you click the PB setup button ?
you can see the cpu use of PB or an other program.
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

When I go to the preferences, the CPU usage rises from 2% to 14%, until the the preferences windows shows up (=for 10 seconds). Same values when loading a project until I can move the cursor in the editor. However, 2 of my 16 cores go up to 100% usage. All other values (RAM, HD, etc.) are normal.
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Very slow editor - independent of settings

Post by marc_256 »

What is the "Antimalware Service Executable" cpu use ?
after you clicked the PB preferences.

Is this after you installed PB 6.12 ?


I only try to think loud out ... and try to help here.
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Very slow editor - independent of settings

Post by marc_256 »

- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Very slow editor - independent of settings

Post by HeX0R »

You could use the IDE source, compile it with debugger on, add some debug outputs here and there, and you should find the part which slows things down.
btw.: did you also look at tools.prefs? Maybe some third party add-on makes trouble
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

marc_256 wrote: Wed Oct 23, 2024 7:12 pm See also, viewtopic.php?t=74256
That's the link I mentioned above. Doesn't work for me :-( .
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

HeX0R wrote: Wed Oct 23, 2024 7:25 pm You could use the IDE source, compile it with debugger on, add some debug outputs here and there, and you should find the part which slows things down.
btw.: did you also look at tools.prefs? Maybe some third party add-on makes trouble
I don't have a "tools.pref" on my computers.

The length of the source code slows down the editor continously - the content doesn't make a difference. As I wrote before, the editor/purebasic also is extremely slow with a blank editor when opening the menu "File -> Preferences".

Remember: On one of my computers purebasic and the editor is really fast, with the same preferences and source code!
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

marc_256 wrote: Wed Oct 23, 2024 7:06 pm What is the "Antimalware Service Executable" cpu use ?
after you clicked the PB preferences.

Is this after you installed PB 6.12 ?


I only try to think loud out ... and try to help here.
0% CPU usage

Hmm... I can try to use 6.11... I'll report.
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Very slow editor - independent of settings

Post by HeX0R »

dangerfreak wrote: Wed Oct 23, 2024 7:33 pm
HeX0R wrote: Wed Oct 23, 2024 7:25 pm You could use the IDE source, compile it with debugger on, add some debug outputs here and there, and you should find the part which slows things down.
The length of the source code slows down the editor continously - the content doesn't make a difference. As I wrote before, the editor/purebasic also is extremely slow with a blank editor when opening the menu "File -> Preferences".

Remember: On one of my computers purebasic and the editor is really fast, with the same preferences and source code!
I don't think you got what I was saying.
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

Ok, same problem with versions 6.11, 6.10 and 6.04 :-(
Post Reply