rdeepak2002 / reddit-place-script-2022

Script to draw an image onto r/place (https://www.reddit.com/r/place/)
909 stars 347 forks source link

Exessive CPU usage when there is no pixels to place #370

Open PROMETHEUS7777 opened 2 years ago

PROMETHEUS7777 commented 2 years ago

Bug Report Form

Checklist

Describe the bug

when there are pixels that haven't been placed yet, my CPU usage is at 1-2%, when all pixels are placed, it jumps to 10-11%

To Reproduce

Steps to trigger the bug:

  1. launch bot so that what it tries to make is already complete
  2. look at task manager

Additional context

Add any other context about the problem here.

Adenser commented 2 years ago

Can confirm. The CPU usage is really high even when script doesn't do anything (waits for pixels to be changed). When the code first start the CPU sits at 100%, then after a 5-10 minutes goes to 200% Screenshot_2022-04-04-11-04-18-49

This is CPU usage of two scripts from double core hetzner VPS. One with 5 accounts, other with 20. (The script with 5 accounts is running with debugger mode)

Adenser commented 2 years ago

398 Fixes this issue!

thoroc commented 2 years ago

@PROMETHEUS7777 please confirm and close the issue