Bug 411663 - Eliminate delay in dock when using workspace isolation
Summary: Eliminate delay in dock when using workspace isolation
Status: RESOLVED INTENTIONAL
Alias: None
Product: lattedock
Classification: Plasma
Component: plasmoid (show other bugs)
Version: git (master)
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-06 23:53 UTC by leftcrane
Modified: 2019-09-07 19:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
small video (2.13 MB, video/webm)
2019-09-07 16:58 UTC, leftcrane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leftcrane 2019-09-06 23:53:53 UTC
SUMMARY


STEPS TO REPRODUCE
1. Set "show launchers from current desktop"
2. Open some windows
3. Switch to next desktop.

OBSERVED RESULT

It takes about three seconds to show the task list (dock)

EXPECTED RESULT

When switching desktops, the dock should appear instantly. Task list should be remembered for each virtual workspace, so it doesn't have to generated on the fly.
Comment 1 leftcrane 2019-09-06 23:55:59 UTC
It takes about two-three seconds to UPDATE the task list when switching desktops. It's very inconvenient when switching desktops rapidly. You have to wait for all the tasks to get displayed.
Comment 2 Michail Vourlakos 2019-09-07 05:01:29 UTC
Have you tried to disable the animations?
Comment 3 leftcrane 2019-09-07 12:10:38 UTC
I don't see an option to disable animations, just 1x 2x 3x.

Animations are fine, they just have no place in this instance. When you switch desktops, your windows don't start animating. So the dock shouldn't animate either.
Comment 4 Michail Vourlakos 2019-09-07 12:52:54 UTC
There is a toggle button next to Animations section, if you disable them is it fixed?
Comment 5 Michail Vourlakos 2019-09-07 13:53:50 UTC
Btw

1. It might be a good idea to provide a video demonstrating the issue through Google drive or dropbox, not youtube
2. There is no option show launchers from current desktop, do you mean tasks?
Comment 6 leftcrane 2019-09-07 15:34:57 UTC
Yeah, it's better without animations but I wouldn't consider it fixed. The delay remains. You switch to the next desktop and the dock takes at least a second to get populated with the tasks. With *default* animations it takes about two seconds. So desktop isolation works doesn't work well right now.

Re 2 : Yes I mean tasks. The issue should be straightforward to reproduce - it's not a glitch - it's expected behavior.
Comment 7 leftcrane 2019-09-07 15:37:38 UTC
Just enable the feature and open a bunch of apps, the more the better. Then twitch between desktops. You will see that the dock takes a certain amount of time to get populated when you switch desktops.
Comment 8 Michail Vourlakos 2019-09-07 16:33:20 UTC
I dont notice any problematic in my system so I will expect your video link because there is a big chance this is an intentional behavior
Comment 9 leftcrane 2019-09-07 16:37:58 UTC
Yes, this is intended behavior. I am saying it's the wrong behavior. The tasks should appear instantly when you switch desktops. Open windows appear instantly, therefore the tasks should also appear instantly.
Comment 10 leftcrane 2019-09-07 16:58:38 UTC
Created attachment 122524 [details]
small video

Watch what happens to the dock. I enable animations since this is the default behavior and allows you to see the problem better.

It may be hard to fix though. 

If you go to the desktop grid, you will see that the task list is the same for each desktop and it has to update every time you switch desktops. This is how the dock is designed. I am not sure if it is feasible to fix this given the architecture.

Maybe at least block the animation for this particular case and see if you can optimize the performance a little bit.
Comment 11 Michail Vourlakos 2019-09-07 18:00:05 UTC
In the video I dont see something that it is not intentional. Latte is using plasma libtaskmanager for its tasks/launchers needs so that support has its limitations.

Why dont you disable in your animations:
"Slide in and out single windows"?
Comment 12 leftcrane 2019-09-07 18:21:47 UTC
> so that support has its limitations.

OK, fair enough. But I would urge you to block animations automatically if the user selects desktop isolation, instead of relying on the user to check all the boxes. (Users shouldn't spend any more time on configuration than they have to, and Latte dock is very complicated to configure due the density and variety of options). It's not good usability.
Comment 13 leftcrane 2019-09-07 18:24:55 UTC
And you can't even disable animations in the simple view. So a user can enable workspace isolation in the simple view but they can't fix the lag issue in the same view - they'd have to switch to advanced and study all the options.
Comment 14 Michail Vourlakos 2019-09-07 18:25:19 UTC
(In reply to leftcrane from comment #12)
> > so that support has its limitations.
> 
> OK, fair enough. But I would urge you to block animations automatically if
> the user selects desktop isolation, instead of relying on the user to check
> all the boxes. (Users shouldn't spend any more time on configuration than
> they have to, and Latte dock is very complicated to configure due the
> density and variety of options). It's not good usability.

Sorry I don't agree, Latte provides animations by default and that is a design decision for almost All docks, give the choice to the user to adjust it to its preference is optional
Comment 15 leftcrane 2019-09-07 18:33:40 UTC
No, I am saying disable the slide in animation IF the user chooses workspace isolation.

This animation has a significant negatively impact on usability when isolation is enabled. There is just no way for an average user is going to be able to figure how to solve this problem - especially since the these two options are in different interfaces (simple/advanced). So you know how to solve the issue it but your users will never figure it out, realistically speaking. So that's why it should be disabled automatically in this case (unless the core architecture changes).

I am not saying disable the animation in call cases.
Comment 16 Michail Vourlakos 2019-09-07 18:39:21 UTC
What do you mean the user has chosen Workspace isolation?
Comment 17 leftcrane 2019-09-07 19:37:07 UTC
Workspace isolation = "show only launchers from current desktop"

If the user checks the "show only launchers from current desktop" box, then the "Slide in and out single windows" should be disabled automatically. 

Workspace isolation and the "slide in animation" simply do not work well together given Latte's architecture, so it should be one or other but never both.
Comment 18 Michail Vourlakos 2019-09-07 19:55:12 UTC
It's the same with activity change. Same thing also happens with activity change. I prefer the slide in-out much better than suddenly appearing things. This is why there is an option for this. 
I am OK with the current default.

If this is too distracting for you, you can also change the Latte Tasks in favor of Plasma icon-only Tasks. So plenty of options but they are not defaults and this is intentional.