rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

Calling warpd from terminal makes some delay #212

Open ajfpay opened 1 year ago

ajfpay commented 1 year ago

Every time want to call this command from the terminal warpd --click 1 --query < hints there will be a few moments delay. Can call query like speed activated mode?

One more question Can after pressing the button on the query not quit from query mode?

Example: I want stay in query mode and I create a script like this warpd --click 1 --query < hints ; sleep 0.1 ; warpd --click 1 --query < hints ; sleep 0.1 ; warpd --click 1 --query < hints ; sleep 0.1 ; warpd --click 1 --query < hints

yes 4 times because I do not want to quit from query mode, is there a better way to do it?

rvaiya commented 1 year ago

What platform are you using? (wayland/X/macos). Are you using the latest version? What is the output of warpd -v?

ajfpay commented 1 year ago

What platform are you using? (wayland/X/macos). Are you using the latest version? What is the output of warpd -v?

I'm using Manjaro latest with X and warpd v1.3.5 (built from: 5d27d1c)

if call warpd script on terminal take 2 seconds to show hint

rvaiya commented 1 year ago

How big is your hint file, can you post it?

ajfpay commented 1 year ago

How big is your hint file, can you post it?

not too much, just this image

OS: Manjaro Linux x86_64 CPU: Intel i7-7700HQ (8) @ 3.800GHz GPU: NVIDIA GeForce GTX 1060 Mobile GPU: Intel HD Graphics 630 Memory: 7774MiB / 15884MiB

ajfpay commented 1 year ago

Why was the issue closed?

rvaiya commented 1 year ago

Sorry, I accidentally must have clicked 'close issue' instead of comment. In general the X implementation is a bit slow and relies on the daemon for caching which means non-daemon options like --query will incur the initialization overhead. I will investigate when I have some time and see if/what optimizations are possible. In the meantime try setting a border radius of 0 (if it isn't already), since that incurs the greatest overhead on X.

ajfpay commented 1 year ago

Sorry, I accidentally must have clicked 'close issue' instead of comment. In general the X implementation is a bit slow and relies on the daemon for caching which means non-daemon options like --query will incur the initialization overhead. I will investigate when I have some time and see if/what optimizations are possible. In the meantime try setting a border radius of 0 (if it isn't already), since that incurs the greatest overhead on X.

thank you for your concern about this matter.

rvaiya commented 1 year ago

I just tried this is and it seems to be nearly instantaneous on my machine. Can you post your config? What desktop environment are you using? Are you using a compositor like compton?

ajfpay commented 1 year ago

I just tried this is and it seems to be nearly instantaneous on my machine. Can you post your config? What desktop environment are you using? Are you using a compositor like compton?

After telling you machine then I tried to use i3 for testing and warpd no problem, I just heard about this compton, I don't think I've ever installed it, but this is my log on GNOME 43

https://codeshare.io/Odp7N7

ajfpay commented 1 year ago

image

ajfpay commented 1 year ago

warpd query getting better after turn off extension Gnome "Another Window Session Manager"