-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Stop (running)
flickering on and off when opening the new picker
#8142
Comments
(running)
flickering on and off in the new picker
This is likely because you are running on slower hardware. The running indicator is only shown if the matcher doesn't manage to complete it's matching within the current frame (10ms) or a new match was started (when streaming). We could increase the timeout but that decrease responsiveness and the sane issue would resurface on even slower hardware (or with more matches) |
It is an i7 desktop, should be pretty decent. I can see
It is fine for it to appear when there is a lot to search for, that is expected, but with I am assuming the the purpose of it is to tell people that the picker is running in case they think the machine has frozen? Nobody will worry their machine has frozen in a search lasting 100ms... unless they are particularly anxiety prone:) |
I dind't manage to make it show up while opening any reasonably sized directory. Event on my slow laptop (its technically also an i7 but particularly on mobli that doesn't mean much). Only when searching $HOME or root folder. And I purpusfully used patterns that I know are worst-case scenarios for fuzzy matchers. Seems like something else might be a problem for you? 10ms is pretty long. Nucleo can fuzzy match all file paths of the linux kernel in 2ms on my machine (and that is on a single core, not in parallel like we do here) so once you hit the 10ms timeout you are really matching a lot of items and it seems reasonable to show that indicator. The issue is that helix does not do any spinner animations or similar (on purpose, see #6446 (comment)) so while we are drawing a frame we have to decide whether to show the running indicator imiidietly. So the longer we wait the slower the frametime gets (which means the editor would take longer to respond to keypresses).The next frame will only be drawn once something about the matcher state changes (read: it's likely done by that point) so that can be arbitrary long into the future and would be too late. The timeout is mutex based tough so maybe its your operating system being slow to notify the render thread (that would be indicative of a larger problem). What OS are you using? |
I am using Debian 12 / Kitty using Wayland. Here is a quick 60fps screen cast of me opening the file and buffer picker many times: https://cloud.elsewebdevelopment.com/nextcloud/index.php/s/d83kyKnFBbFzeXg |
|
you only show opening the file/buffer picker. I can indeed also spot it in that case, there might be a fix for that. What I understood the issue to be is that the |
Great news! Sorry if I was not clear, I meant when opening the file/buffer picker. I hope there is a fix, thanks for looking into this! |
(running)
flickering on and off in the new picker(running)
flickering on and off when opening the new picker
The new nucleo picker is amazing, but it is annoying that the word
(running)
flickers on and off when opening the new picker however small the amount of items to pick is. It really catches the eye.Is there a mechanism possible so that it won't display for a fraction of a second, and then only display if the search takes any longer? Maybe if it has displayed before it doesn't display again?
The text was updated successfully, but these errors were encountered: