Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 System becomes extremely slow if loop is used too much #682

Open
4 tasks done
anthunyy opened this issue Feb 5, 2025 · 3 comments
Open
4 tasks done

🐞 System becomes extremely slow if loop is used too much #682

anthunyy opened this issue Feb 5, 2025 · 3 comments
Labels

Comments

@anthunyy
Copy link

anthunyy commented Feb 5, 2025

Bug Description

When Loop is used too much, i.e. moving a screen left and right, over time, programs are slow to use, and at some point, nothing is usable. All problems end if Loop is quit, but this may be difficult if your system is running very slow. Major problem.

Steps To Reproduce

  1. Create hundreds of loops (or have a Python script press fn + whatever)
  2. Watch your system slow down
  3. Quit loop
  4. Everything is fine
  5. Repeat

Reproducing using Python script (uses pyautogui):

import pyautogui
import time

def right():
    pyautogui.keyDown('fn')
    pyautogui.press('right')
    pyautogui.keyUp('fn')


def left():
    pyautogui.keyDown('fn')
    pyautogui.press('left')
    pyautogui.keyUp('fn')

#I would recommend adding a way to quit easily, not required
while True:
    right()
    left()

Expected Behavior

Loop is expected to not slow down your system a ton if used too much

Actual Behavior

Loop slows down your system a lot if used too much. Mostly noticed because no one is doing hundreds of loops

Screenshots

No response

macOS Version

Sequoia 15.3

Loop Version

1.2.0 (1410)

Additional Context

No response

Final Checks

  • My issue is written in English
  • My issue title is descriptive
  • This is a single bug (multiple bugs should be reported individually)
  • I can help with fixing or developing this issue (tick if you can help).
@anthunyy anthunyy added the Bug label Feb 5, 2025
@SenpaiHunters
Copy link
Collaborator

This is a duplicate of #626 although you've added some py script, but, even after not closing loop for a week and using it over 700 times, I still have not felt the system be sluggish nor slow, i guess we'll have to look into it more.

@Write
Copy link

Write commented Feb 5, 2025

Can confirm the behavior.

Can't figure out what exactly reproduce the issue. I first re-used Loop today, since a long time ago.
Quitting Loop does fix instantly the issue.
When it happens, All mouse event will be then delayed.

I only use my Macbook w/ Trackpad and no external screen right now.

On top of my head, app that I use that could maybe interfere with the bug triggering would be Swish and / or BetterTouchTool.

Seqoia 15.3

@CyberTimon
Copy link

Same problem. Trackpad becomes unusable laggy when using loop for 2-3 days. A loop restart fixes the issue for another 2-3 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants