Skip to content

Avoid sorting too frequently

Felix Ernst requested to merge felixernst/dolphin:prevent_20fps_resorting into master

d9803774 changed the time from 500 ms to 50 ms. This commit changes it to 100 ms.

Information relevant for sorting might change repeatedly. Prior to this commit here we would resort within 50 ms of sorting being requested. If a lot of resorts would be requested in a short time frame, this could lead to the item order changing within the view up to 20 times a second which would lead to a lot of unnecessary movement and make it impossible to read even file names during the repeated sorting.

100 ms is half as bad in that regard. Bigger values might be even better but it is a trade-off.

Video showing this IMO unpleasant behaviour:

2023-12-17_11-49-32

Edited by Felix Ernst

Merge request reports