reddit-place-script-2022 icon indicating copy to clipboard operation
reddit-place-script-2022 copied to clipboard

Exessive CPU usage when there is no pixels to place

Open PROMETHEUS7777 opened this issue 2 years ago • 3 comments

Bug Report Form

Checklist

  • [Y] I am using the latest version of the code.
  • [Y] I am absolutely sure I read the README in its entirety.
  • [Y] I have made sure this is not a duplicate issue.
  • [Y] I have filled out this form correctly.

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.

PROMETHEUS7777 avatar Apr 04 '22 02:04 PROMETHEUS7777

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 avatar Apr 04 '22 08:04 Adenser

#398 Fixes this issue!

Adenser avatar Apr 04 '22 11:04 Adenser

@PROMETHEUS7777 please confirm and close the issue

thoroc avatar Apr 04 '22 11:04 thoroc