Page 1 of 1
Ugly IDE when loading big source
Posted: Sun May 05, 2024 6:45 am
by BarryG
I've noticed since 6.10 (I think) that when loading a large source, the IDE now isn't drawn properly and has visual glitches, when it never did before. It also says at the bottom that the source code has loaded, when in reality it hasn't. Seems like a fix is need to remove the glitches that weren't there before with 6.04 and lower. (I'm putting this as a request rather than a bug, even though it is a bug because it didn't do this before).

Re: Ugly IDE when loading big source
Posted: Sun May 05, 2024 12:15 pm
by benubi
For me the drawing isn't even the worst I found. But it may be an indicator for a "greater problem".
On Raspberry Pi it's certainly the slowest version to load; you can click during that time on different Panel-Titles, sometimes close just loaded sources, or click into an already loaded one and cause confusion to the IDE. Eventually the wrong source can be somehow loaded into the wrong panel/window; It has the title "SourceFileA.pb" but in fact it's content is from "DifferentFile.pb".
Perhaps the IDE should remain hidden during source-loading time and only pop up once loaded and/or IDE dialogs start showing up. This could also speed up the source loading too.
Re: Ugly IDE when loading big source
Posted: Mon May 06, 2024 12:53 pm
by ricardo_sdl
BarryG wrote: Sun May 05, 2024 6:45 am
I've noticed since 6.10 (I think) that when loading a large source, the IDE now isn't drawn properly and has visual glitches, when it never did before. It also says at the bottom that the source code has loaded, when in reality it hasn't. Seems like a fix is need to remove the glitches that weren't there before with 6.04 and lower. (I'm putting this as a request rather than a bug, even though it is a bug because it didn't do this before).
Out of curisioty, how big is the source file?
Re: Ugly IDE when loading big source
Posted: Mon May 06, 2024 10:10 pm
by BarryG
ricardo_sdl wrote: Mon May 06, 2024 12:53 pmOut of curisioty, how big is the source file?
It's 2 MB, containing 63249 lines. Maybe that's not big compared to some, but I think it's big.
Re: Ugly IDE when loading big source
Posted: Mon May 06, 2024 10:53 pm
by HeX0R
Besides the fact, that size shouldn't matter (ask your wife), I'm wondering how you are able to manage a source code with 63249 lines?
I've learned long ago, the bigger the sourcefile is, the more difficult the troubleshooting will be.
You are scrolling up- and downwards all the time, to finally find the position which makes trouble and when you want to look-up a different place, you start scrolling again, loosing the previous found position.
Don't get me wrong, PB should be able to handle big sources like small sources, and if that needs now ages, this is not o.k., but maybe you should think about some re-structuring of your source code(s), splitting them into smaller pieces you can work with in parallel.
[Edit]
Post #1000, I finally made it after 20 years

Guess I'll retire now, and keep things as is
Re: Ugly IDE when loading big source
Posted: Tue May 07, 2024 9:15 am
by BarryG
HeX0R wrote:I'm wondering how you are able to manage a source code with 63249 lines?
Size doesn't matter for me with sources.

That 2 MB source is just the main source, and then I have an additional library of 157 other IncludeFiles that it loads extra. So yes, it's already organized into separate pieces that do different tasks.
Plus, I simply know where everything is (photographic memory), and I also have an index of the most-used procedures at the start of that main source so I can just
Ctrl+DoubleClick their name to jump straight to them in the source without scrolling.
For going to things in the source that I don't use often, I just
Ctrl+F to find them, due to using good variable names and text strings. I basically only scroll when I'm inside a long procedure.
HeX0R wrote:when you want to look-up a different place, you start scrolling again, loosing the previous found position
Not an issue, because the IDE can jump straight back to where I was with a hotkey. By default it's
Ctrl+L but I made it
F9.
Congrats on your 1000 posts.
