QB64 Phoenix Edition
Pls help with CPU usage!!! - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Pls help with CPU usage!!! (/showthread.php?tid=2383)

Pages: 1 2


Pls help with CPU usage!!! - liubartas - 01-08-2024

Hi, I want to use qb64pe but for some reason ide uses 50% cpu, and my laptop starts overheating.
This happens when I load the full source code of ide itself. It's a large file, but maybe it's possible
to somehow disable such high cpu usage?


RE: Pls help with CPU usage!!! - RhoSigma - 01-08-2024

(01-08-2024, 02:54 PM)liubartas Wrote: Hi, I want to use qb64pe but for some reason ide uses 50% cpu, and my laptop starts overheating.
This happens when I load the full source code of ide itself. It's a large file, but maybe it's possible
to somehow disable such high cpu usage?

It's the automatic "Syntax Checker" which is practically invoked at file load and then again on every change to the source. You can disable it in the "Options" menu in the IDE.


RE: Pls help with CPU usage!!! - bplus - 01-08-2024

Funny my fan for CPU started running hard while reading this post. Turns out some giant app is uploading somewhere in background an update. It appears to have been my browser this time.

So yes the IDE code's got to be huge but your computer could be doing something in background completely unrelated to QB64.


RE: Pls help with CPU usage!!! - TerryRitchie - 01-08-2024

(01-08-2024, 02:54 PM)liubartas Wrote: Hi, I want to use qb64pe but for some reason ide uses 50% cpu, and my laptop starts overheating.
This happens when I load the full source code of ide itself. It's a large file, but maybe it's possible
to somehow disable such high cpu usage?
What are the specs of your laptop? CPU type, amount of RAM, Operating system, etc..


RE: Pls help with CPU usage!!! - Kernelpanic - 01-08-2024

(01-08-2024, 05:39 PM)bplus Wrote: Funny my fan for CPU started running hard while reading this post. Turns out some giant app is uploading somewhere in background an update. It appears to have been my browser this time.

So yes the IDE code's got to be huge but your computer could be doing something in background completely unrelated to QB64.
Not at my place.

[Image: CPU-Bei-Mir-Nicht-2024-01-08-212537.jpg]


RE: Pls help with CPU usage!!! - liubartas - 01-09-2024

My specs are Windows 8.1, 4 GB of RAM, Intel Celeron 1.8 GHz 2 cores.

Anyways, disabling Syntax Checker solved the problem, no more overheating!

Thank you everyone for help!


RE: Pls help with CPU usage!!! - euklides - 01-09-2024

By 4GB ram more (or more...) and many problems disapear...


RE: Pls help with CPU usage!!! - TerryRitchie - 01-09-2024

(01-09-2024, 08:37 AM)liubartas Wrote: My specs are Windows 8.1, 4 GB of RAM, Intel Celeron 1.8 GHz 2 cores.

Anyways, disabling Syntax Checker solved the problem, no more overheating!

Thank you everyone for help!

@liubartas

If possible upgrade your RAM to at least 8GB. Run the MSCONFIG utility on your system and disable anything that does not need to be running during startup (the startup tab). If you happen to disable something by accident that you need you can simply re-enter MSCONFIG and turn it back on.

(You can run MSCONFIG by either pressing Win+R and typing in MSCONFIG, or do a search for MSCONFIG)

Your CPU specs are bare minimum so disabling startup programs that are not needed will help greatly.

Within MSCONFIG you can also go to the services tab and disable any services that don't need to be running at startup.

When finished making changes in MSCONFIG reboot your computer using a true shutdown (not the hybrid shutdown that Windows 8.1 does).

To do this press Win+R and type in CMD then press the enter key.

At the command prompt inside the command window type in:

shutdown  /s  /t  0

and then press enter. This will tell Windows to do a true Windows shutdown (you should do this at least once a month any way to truly wipe your RAM clean and keep Windows running faster). After the computer has turned off simply start it back up.

Also, if your system is overheating at 50% CPU usage try giving your computer's fan and intake/exhaust ports a good cleaning. They are probably clogged with dust and a good cleaning will help with CPU cooling.

If your hard drive is mechanical (not an SSD) run the DEFRAG utility on it. It's amazing how much smoother a computer will run when the hard drive has been freshly defragmented. If you have an SSD (solid state drive) do not do this as SSDs do this internally already and DEFRAG takes from the finite read/write cycles that SSDs have.

These suggestions should make your computer experience much smoother and faster.

Terry


RE: Pls help with CPU usage!!! - Kernelpanic - 01-09-2024

The hint about shutdown is good, I shut down like that every evening. I put an icon on the desktop for this. C:\Windows\System32\shutdown.exe /s /t 0

[Image: Shutdown-2024-01-09.jpg]

An extra defragmentation with Defrag is no longer necessary since Win XP (Prof), as the system (NTFS) automatically defragments at every opportunity.


RE: Pls help with CPU usage!!! - TerryRitchie - 01-10-2024

(01-09-2024, 05:57 PM)Kernelpanic Wrote: An extra defragmentation with Defrag is no longer necessary since Win XP (Prof), as the system (NTFS) automatically defragments at every opportunity.
A correction I need to make as well is that Defrag was renamed to Microsoft Drive Optimizer starting with version 8.1.

Your statement is true that defragmentation is handled automatically but it's done so at very low priority. With a heavily used system the optimization may never fully get finished. I still think a manual defragmentation of mechanical drives now and then will perform some benefit to the user.

Microsoft Drive Optimizer will not attempt to defrag an SSD but it does handle the TRIM feature of SSD drives telling the drive which data blocks are marked as empty and can be rewritten to, which helps with performance.