Support OpenKore:
Learn about
the Fund Pool

CPU Usage


It's possible that, while you are letting your bot(s) run, your computer tends to lag up. That could be because it's using up a lot of resources.
You might be able to lower up your CPU usage and make it run faster.

Contents

What's CPU Usage?

In simple terms, it is how much of your computer's "guts" are actually being put to use by various processes. It's measured in percentage, and while running OpenKore, you may notice the computer usage % tends to skyrocket. If it gets too high, your computer will slow down and might even be impossible to use. It's a good idea to keep the number as low as possible.

How do I see my CPU Usage?

CTRL ALT DEL to bring up your Task Manager. At the bottom of the screen, it will show you your CPU usage.

Okay, great... can I make OpenKore use less of my CPU?

Yes, you can! There are a number of ways to save your precious CPU usage.

Increase sleepTime

Increase your sleepTime in config.txt - the default is 10000 which means .01 second delay between every loop. For comparison, modKore (an outdated bot but was very popular when it was still open source) had a default sleepTime of 50000. A sleepTime of 1000000 (1million) is equivalent to 1 second. The tradeoff is performance; the more you increase sleepTime the more your CPU usage is lessened, but your bot may become less responsive. Increasing sleepTime is also a diminishing marginal return (just google this). Your mileage may vary, so you should test what you can bear.

Lessen the number of plugins that you have

Don't run plugins that you know you only use rarely.

Optimize your macros

Some macros make OpenKore slow. Either remove them or optimize them.

Disable consistency checks

Did you know the 1.9.2 and 1.9.3 intentionally uses more CPU for debugging purposes? It runs internal consistency checks in order to find bugs.

You can disable the consistency checks, by setting the environment variable "NDEBUG" to the value "1" (without quotes). Read this page to learn how to set environment variables. Disabling consistency checks will give you about 20%-30% speed increase.

Note that by doing this we don't be able to detect some possible bugs!

Okay, that didn't work well, anything else?

Yep! Some types of applications/scenarios hog your resources more than others. Some of them are:

  • Java-based applications (like LimeWire)
  • Anti-virus applications in scanning mode
  • 3D Graphic intensive games
  • Running a lot of bots at one time

In addition, if you have Spyware or viruses, you can be willing to bet they hog down your resources as well. Get rid of them!

You can use this thought process to save CPU usage:
Less applications running = less resources used!

What hardware controls my CPU usage?

Your RAM (Random Access Memory) controls "multitasking". If you have more RAM, you will be able to run more programs at once with less computer lag and less CPU usage. It's a good idea to have at least 512 MB of RAM. The more RAM you have, the more bots you'll be able to successfully run at one time.

Reference/Other