-
Notifications
You must be signed in to change notification settings - Fork 52
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
PCManFM-Qt: Smooth Scrolling Adds Noticeable Delays to Detailed List Mode #739
Comments
First, thanks for the report! The code of smooth scrolling has nothing to do with sorting. This Qt method is the cause: Line 351 in 3470b20
I tested with
So, I'm afraid it's a problem in |
As a workaround, adding options to pcmanfm-qt and LXQt file dialog for disabling smooth scrolling in detailed and compact modes seems acceptable to me because it'll be only about using or not using
I'll work on it. |
It appears only with list and compact modes. By default, smooth scrolling is enabled. The reason behind this option is that Qt may slow down item sorting when the number of items is huge and scrolling is done per pixel in list or compact mode. As a workaround, the user can disable per-pixel scrolling by disabling smooth scrolling. Closes #739 WARNING: All libfm-qt based apps should be recompiled.
Seems to work as advertised. Most excellent, thank you! |
Thanks for the fast reply! Tomorrow, I'll read the patch again. If I find nothing suspicious, I'll merge it and add an option to pcmanfm-qt. |
It appears only with list and compact modes. By default, smooth scrolling is enabled. The reason behind this option is that Qt may slow down item sorting when the number of items is huge and scrolling is done per pixel in list or compact mode. As a workaround, the user can disable per-pixel scrolling by disabling smooth scrolling. Closes #739 WARNING: All libfm-qt based apps should be recompiled.
The reason is that Qt may slow down item sorting in the list and compact modes when the number of items is huge and scrolling is done per pixel (smooth scrolling itself isn't the cause of slowdown; see lxqt/libfm-qt#739 (comment)). As a workaround, the user can disable per-pixel scrolling by disabling smooth scrolling in those modes, although that isn't needed in most use cases.
…1466) The reason is that Qt may slow down item sorting in the list and compact modes when the number of items is huge and scrolling is done per pixel (smooth scrolling itself isn't the cause of slowdown; see lxqt/libfm-qt#739 (comment)). As a workaround, the user can disable per-pixel scrolling by disabling smooth scrolling in those modes, although that isn't needed in most use cases.
Expected Behavior
Less delay in moving to a directory or when re-sorting files in PCManFM-Qt.
Current Behavior
After 363233e [1], smooth scrolling is enabled for PCManFM-Qt's Detailed List view, and this seems to add a noticeable delay to opening and/or re-sorting files.
The delay will probably only become longer with more files, starting to be very noticeable with approximately 5000 files on my system (Ryzen 7 1700, tested with SSDs and HDDs), becoming around one second with about 10000 files.
Possible Solution
At the very least it would be nice to have the option to disable smooth scrolling in Preferences (personally I might still prefer the non-smooth scroll regardless of this issue).
Steps to Reproduce (for bugs)
My current builds use the Qt upstream 5.15 git master branch, with the KDE patches applied on top. I have not tested this with any official releases of Qt.
Context
This seems to affect me surprisingly often, and albeit the delay usually is only around 1 second, it's not exactly fun either. :]
System Information
The text was updated successfully, but these errors were encountered: