Slow file selecting/dragging - Preview culprit

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Slow file selecting/dragging - Preview culprit

Post by avivariba »

Upon selecting files, it would tend to take a bit (up to 2.2 seconds) for a file to actually be selected and draggable, or even getting unselected when clicking off of it. Folders would always select and drag instantly.

After going through all the settings trying to somehow speed it up and mitigate this issue, I discovered that it's because of the Preview, even when there is no preview (pane) visible. Setting 'Preview Delay' to the longest selection load time (2200 ms in my case) made it so all file (un)selecting and dragging became instant.

However, with the speed solved, it that means that whenever there actually is a preview pane, the delay will take effect with those loading much slower now.

By the looks of it, previews take priority over file selections and such actions. That upon clicking a file, XY loads the preview (even if no pane) before activating the selection.

Expected would be for it to select the file and allow dragging it before loading the preview (possibly not spending any time and resources loading the preview when no preview pane is visible nor perhaps upon dragging files).

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

Which file type are we talking about?

...

Whatever, this will probably fix it for you: enter e.g. 500 here Configuration | Preview | Preview | Preview delay.

The latest beta has a little improvement here: viewtopic.php?p=211189#p211189

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 12:05 Which file type are we talking about?
Basically anything with a preview, mostly avi / gif / heic / jpeg / jpg / mov / mp4 / png / psd / tiff / webm. All ranging wildly in resolutions and sizes.
Whatever, this will probably fix it for you: enter e.g. 500 here Configuration | Preview | Preview | Preview delay.
500 ms didn't really do it for me (it would in many cases, but I found that I had to put it all the way up to 2200 ms for it to always be quick, so I thought/think it corresponds to the longest selection wait as that is 2 seconds for me too).
The latest beta has a little improvement here: viewtopic.php?p=211189#p211189
By the limited testing I just did, that may have fixed it altogether. [Edit: never mind.] Not sure if what is described in the notes really makes sense though. If a drag is aborted with the file still selected, I guess one might still like to see the preview for it, but the beta also still loads the preview for me just fine in that case so I don't think that is actually what is meant or happening.

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

avivariba wrote: ↑19 May 2023 14:28 If a drag is aborted with the file still selected, I guess one might still like to see the preview for it, but the beta also still loads the preview for me just fine in that case so I don't think that is actually what is meant or happening.
1) Not here. Which file types that?

2) What is your double click time. (see Help | Various Information, end of block 5)

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 16:09 1) Not here. Which file types that?
Any, but now I noticed it's quite sporadic to begin with, so I'm not sure. It does seem that if no preview has loaded when dragging, it indeed doesn't load afterwards either. But sometimes it also doesn't load without dragging, like in the beginning of this (upon selecting test-2.txt and then text.txt afterwards):
previewtest.gif
With dragging included also, recognizable by the no-drop/not-allowed mouse cursor.
2) What is your double click time. (see Help | Various Information, end of block 5)
200 ms
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

Grabbing files by the thumbnail is something else. Here Mouse Down Blow Up comes into play (check settings here: Configuration | Preview | Mouse Down Blow Up | Mouse Down on Thumbnails and Icons).

Switch to Details view for a valid test of dragging/preview/preview delay.

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 16:59 Grabbing files by the thumbnail is something else. Here Mouse Down Blow Up comes into play (check settings here: Configuration | Preview | Mouse Down Blow Up | Mouse Down on Thumbnails and Icons).

Switch to Details view for a valid test of dragging/preview/preview delay.
Ooh, I see. Only in Details view it does load the preview always, also when dragging and aborting it (also via Esc). But I do think all works as expected when it comes to that, so that is of no concern. :tup:

The original issue unfortunately persists:
select-and-drag-times.gif
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

Always? Here never. :veryconfused:

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 17:58 Always? Here never. :veryconfused:
always.gif
And when having a preview delay set, it shows up after the delay regardless of dragging, aborting it, or otherwise. But I really don't mind how this works. Instead, if it wouldn't preview after aborting the dragging, the file stays selected and then clicking on it doesn't so anything and wouldn't make the preview appear either, so this works fine as is.
To see the attached files, you need to log into the forum.
Last edited by avivariba on 19 May 2023 21:34, edited 1 time in total.

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

Sure you've set Configuration | Preview | Preview | Preview delay as I told you?

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 21:33 Sure you set Configuration | Preview | Preview | Preview delay as I told you?
To be clear, this is just regarding the beta update and its note. Not regarding the initial issue. With the delay, it appears after said time also when aborting the dragging.

I have set the delay to 2200 ms in both the normal version and a separate beta, for without the delay (or with a shorter delay) it has the selection/dragging issue as described and shown. But that also means all previews now take 2.2+ seconds to load.

I think the selecting/dragging shouldn't be influenced by or coupled to the preview. Now it's either a fast selection and slow preview, or a fast preview and slow selection (even when no preview). If selecting (and dragging) would be activated first, with the preview process starting after the selection, it would work as expected and be fast both ways around (as the preview loads after the selecting and while dragging just fine).

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

I don't get it. Works perfectly here 100% of the times, with 500 msecs delay. The faster you can drag, the shorter you can make the delay. It's physically impossible without a delay. So, again, I don't get it. Maybe somebody else does.

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

admin wrote: ↑19 May 2023 21:56 I don't get it. Works perfectly here 100% of the times, with 500 msecs delay. The faster you can drag, the shorter you can make the delay. It's physically impossible without a delay. So, again, I don't get it. Maybe somebody else does.
So they are tied/coupled, but in a different way from what I'm experiencing. For me it seems to be the preview load time opposed to the selection/dragging speed.

Upon clicking a file, it loads the preview (even if no pane, presumably, as it's just as fast/slow with as without pane), and only afterwards it selects the file. With the delay, it shows the preview later but the selecting/dragging activates just as slowly.

Setting a delay shorter than 2200 ms for me on a file with a preview taking 2(.1999) seconds to load, causes the selecting and dragging delay. The longer the delay, the less often it's an issue, but I have been increasing it by +100 till it was no issue at all anymore which happened to be at 2200 ms.

As can be seen here it's not just the dragging, also just selecting (single clicks the first 2 times), which should technically be instant even with 0 or 1 ms as the selecting usually activates on mousedown. The preview delay was set to 500 ms during that.

admin
Site Admin
Posts: 67226
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slow file selecting/dragging - Preview culprit

Post by admin »

Gosh, you're right. :oops:

I'll try again in the next beta.

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Slow file selecting/dragging - Preview culprit

Post by avivariba »

Unfortunately it's still an issue, but it doesn't seem to have to do much with the previews anymore. For some file types (mostly HEIC, MOV and MP4 for me) the (de)selecting is really quite slow sometimes. It happens just as often for dragging, but that seems to be at the same kind of moments the single-click selecting is slow as well.

The one moment it's guaranteed to happen is right after opening a folder. After that it seems to be at random moments:
slow.gif
The files used in the test: https://github.com/tigranbs/test-heic-i ... master.zip
To see the attached files, you need to log into the forum.

Post Reply