CPU usage going through the roof when running script
Hi everyone,
I've created a farming bot for a mobile game which I am playing on my PC with the android emulator Nox.
My problem is that once I start the script the CPU usage goes up really high. Here's a SS: https:/
And here is my script / code:
Settings.
running = True
def runHotkey(event):
global running
running = False
Env.addHotkey(
while running:
if Screen(
if Screen(
if Screen(
if Screen(
if Screen(
if Screen(
To run the script I'm just pressing on "run / execute" (Ausführen in German) in Sikuli.
So if anyone knows how to reduce the CPU and RAM usage, please tell me!
If I do not set the FPS in the emulator to 10 my PC crashes within 20 mins or so.
Greetings, Dave
PS: I'm a noob on this territory. This is the first I've ever coded something so please explain it so I can understand what I should do. :)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: