Skip to content

Right click on video files takes two to three seconds #285

New issue

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

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

Already on GitHub? # to your account

Closed
AryaTwirl opened this issue Jun 7, 2023 · 11 comments
Closed

Right click on video files takes two to three seconds #285

AryaTwirl opened this issue Jun 7, 2023 · 11 comments

Comments

@AryaTwirl
Copy link

AryaTwirl commented Jun 7, 2023

Version 1.8.1, tried default settings and modified nss (but with way less items).

Also slow using Windows 11 native context menu, but it only takes like a bit more than 1 second.

No third party items at all (other than OneDrive).

Windows 11 22621.1778

@moudey
Copy link
Owner

moudey commented Jun 8, 2023

This delay is caused by some items of the system.

A new feature has been added to provide a report on the time it takes to generate system entries to find out why the context menu is lagging by pressing Alt + right-click. You can try it with the debug version.

@AryaTwirl
Copy link
Author

Hi, thanks for the reply.

I have downloaded the debug version, but alt+right clicking doesn't seem to work. Also, the UWP context menu isn't replaced by the nilesoft one. Am I doing something wrong, or is it the expected nature of it? Thank you.

@moudey
Copy link
Owner

moudey commented Jun 9, 2023

Change priority value to 1 to enable shell

settings
{
    priority = 1
}

Save changes, restart Explorer to reload settings.

You find the report in the 'shell.log' file.

The context menu will not appear while the ALT key is pressed.

@AryaTwirl
Copy link
Author

Hi,
I've successfully collected the log and this is what it shows:
image

As you can see, one of the entry on the list is 50ms+, but I still can't find out the cause.

Looking forward for further help.

Thank you.

@AryaTwirl
Copy link
Author

AryaTwirl commented Jun 10, 2023

Okay, I think I now understand what all those number means. it's OneDrive causing it. But don't know why it's only on video files.

Any suggestions what to do next?

Thank you.

@moudey
Copy link
Owner

moudey commented Jun 13, 2023

  • Delete the log file.
  • Select the video file, then press Alt + Right Click.
  • Go to the log file and then find the items that take the longest to create.

Copy the items to be removed and put them in the "shell.nss" file like this

remove(clsid='{9F156763-7844-4DC4-B2B1-901F640F5155}')
remove(clsid='{9F156763-7844-4DC4-B2B1-901F640F5156}')
...

Save changes, restart Explorer to reload settings.

@AryaTwirl
Copy link
Author

Thank you very much for the help.

And yes, I can confirm it's OneDrive. Inserting the CLSID to the Remove list also removes the OneDrive functions. Still not sure why it only slows down on video files.

@AryaTwirl AryaTwirl reopened this Jun 15, 2023
@AryaTwirl
Copy link
Author

Hi,

Apologise for reopening the issue.

But after having inserted the CSLID to the remove list, once in a while, it still appears on the log and the right click still slows down (although it has improved dramatically).

Any suggestions for that?

Also, I notice that the debug version has a different shell.nss structure than the usual one. Could I apply the remove cslid entry to the usual version also?

Thank you.

@moudey
Copy link
Owner

moudey commented Jun 15, 2023

  • When using the report, all entries appear without removing any entry.
  • The clsid property cannot be entered with the previous version.

Try removing the Edit with Clipchamp item, which may have an effect on delaying the context menu for video files.

remove(clsid='
	{9F156763-7844-4DC4-B2B1-901F640F5155}|   //Open in Terminal	(UWP)
	{8AB635F8-9A67-4698-AB99-784AD929F3B4}| //Edit with Clipchamp	(UWP)
' where=this.isuwp)

@AryaTwirl
Copy link
Author

Hi,
so there's a Windows update earlier and the slow down is back. I've investigated further, found yet another culprit, put it into the list, yet it's still slow. Like it doesn't work at all.

{8F491918-259F-451A-950F-8C3EBF4864AF}| (UWP)
{1861E28B-A1F0-4EF4-A1FE-4C8CA88E2174}| (UWP)

Any suggestion for that?

Thank you.

@moudey
Copy link
Owner

moudey commented Jun 17, 2023

// must be placed before (UWP) or delete it

remove(clsid='{8F491918-259F-451A-950F-8C3EBF4864AF}|{1861E28B-A1F0-4EF4-A1FE-4C8CA88E2174}' where=this.isuwp)

Or put each one separately

remove(clsid='{8F491918-259F-451A-950F-8C3EBF4864AF}' where=this.isuwp)
remove(clsid='{1861E28B-A1F0-4EF4-A1FE-4C8CA88E2174}' where=this.isuwp)

@moudey moudey closed this as completed Oct 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants