QB64 Phoenix Edition
IDE almost flatlines 4 of 4 cpus - linux - any cure? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: IDE almost flatlines 4 of 4 cpus - linux - any cure? (/showthread.php?tid=2890)



IDE almost flatlines 4 of 4 cpus - linux - any cure? - desA - 07-27-2024

Hello everyone,

It's been quite some time since I last posted on QB64PE Forum. I'm so glad that you kind folks have continued QB64. Greetings from Vientiane, Laos.   Smile

I've installed and compiled the Linux version on my Linux Mint box. When I run the ISE, it almost flatlines 4 of 4 cpus. This makes things a bit sluggish.

Is there a way to restrict operation to 1 or 2 cpus at most?

Many thanks,
desA


RE: IDE almost flatlines 4 of 4 cpus - linux - any cure? - Kernelpanic - 07-27-2024

Take a look under "Help".


RE: IDE almost flatlines 4 of 4 cpus - linux - any cure? - DSMan195276 - 07-27-2024

If you're editing via the IDE then there's not a whole lot you can do, I would consider editing using a different editor and compiling your code via the command line. I've used geany, vim, gedit, etc. There's lots of good choices on Linux and all of those are very lightweight.

You can use:
Code: (Select All)
qb64pe -x ./foobar.bas -o ./foobar
to compile your code from the command line. It's pretty straight forward to set that up to run from most editors so that you can just hit a button.

If it's the compiling of your code that causes the issue then in `Options -> Compiler Settings` you can change the max number of compiler processes allowed, it defaults to 3 but you could set it to 1. This is unlikely to do a ton though as the build is not very parallel anyway, and we avoid rebuilding things when not necessary. That said the compiling should get faster after the first time you compile a program, as it's the recompiling of `libqb.cpp` that will likely cause the slowdown but that shouldn't happen often.


RE: IDE almost flatlines 4 of 4 cpus - linux - any cure? - bplus - 07-27-2024

Man! didn't I just reply to this??? WTH this was posted twice!
https://qb64phoenix.com/forum/showthread.php?tid=2891&pid=26925#pid26925

I thought I was losing my mind, Alzheimers is big fear at my age.... always on lookout until we forget to be ;-))


RE: IDE almost flatlines 4 of 4 cpus - linux - any cure? - desA - 07-28-2024

Being a relative Newbie, I initially posted here, then realised it was better placed in 'Help Me'. I tried to delete this first post, but could not find the way to do so.

Smile


RE: IDE almost flatlines 4 of 4 cpus - linux - any cure? - bplus - 07-28-2024

Yeah for OS problems I can see myself being torn, either way works IMHO maybe administrators have more helpful perspective which route. Posting twice... well I will just take it as my annual weekly hourly Alzheimer's Test ;-))

More and more we hear about Linux, more and more we question Windows infinite wisdom, more and more I am tempted to explore Linux further but this old dog can learn only so many new tricks...