Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pls help with CPU usage!!!
#1
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?
Reply
#2
(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.
Reply
#3
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.
b = b + ...
Reply
#4
(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..
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#5
(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]
Reply
#6
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!
Reply
#7
By 4GB ram more (or more...) and many problems disapear...
Why not yes ?
Reply
#8
(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
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#9
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.
Reply
#10
(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.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply




Users browsing this thread: 2 Guest(s)