i3-cycle icon indicating copy to clipboard operation
i3-cycle copied to clipboard

Slight input delay

Open schwukas opened this issue 6 years ago • 1 comments

Hey there,

I noticed a slight input delay between pressing the key combination for cycling and the actual action performed. It's maybe about 300 to 500 ms in my case (not measured, just my feeling). I have no clue whether this is the case for others as well but I fixed it by linking to ~/.local/lib/python3.7/site-packages/i3_cycle.py directly from /usr/local/bin/i3-cycle.

I originally had it installed via an AUR package which led to some init script being called, including some imports which apparently caused the slow down. So now the python script is called directly everytime the tool is invoked instead of it calling a script which in turn calls the script.

Anyways, maybe that's of help for someone in the future.

Thanks for your small but very helpful tool :slightly_smiling_face:

schwukas avatar Mar 11 '19 21:03 schwukas

Hey @schwukas,

Indeed, that's a big bummer. I am using pyenv currently and with its launching scripts, it doubles the times on my machine (from ~110ms to ~220ms), which is noticeable.

Your solution is pretty good and I tested it, unfortunately I can hardly do anything about it since it depends on the python distribution.

I'm glad this project helped, I didn't even imagine that a whopping 9 people would follow that little project I just made for myself back in the day, crabby I was losing that functionality :smile:

Thank you for your feedback!

dustbyte avatar Mar 20 '19 04:03 dustbyte