Page 1 of 7
[SOLVED] Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 5:22 pm
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.
Re: Very slow editor - independent to settings
Posted: Wed Oct 23, 2024 6:02 pm
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
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 6:15 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 6:21 pm
by marc_256
Then, can it be that the antivirus program is the problem ?
I don't remember what antivirus I used that days.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 6:26 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 6:31 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 6:43 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:06 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:12 pm
by marc_256
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:25 pm
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
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:27 pm
by dangerfreak
That's the link I mentioned above. Doesn't work for me

.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:33 pm
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!
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:35 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:43 pm
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.
Re: Very slow editor - independent of settings
Posted: Wed Oct 23, 2024 7:45 pm
by dangerfreak
Ok, same problem with versions 6.11, 6.10 and 6.04
