One more round of overview performance tweaks
This time not really targeting a specific vfunc_allocate()
, but the overview in general.
- Move BaseIcon's
get_preferred_height()
to C - Get rid of the panelGhost and avoid the last panel relayout
- Hide appDisplay when it's out of the view
- Don't access C properties on every loop iteration of workspaceView
- Return 0 preferred size in ControlsLayout
Measuring the time spent allocating the UIActor with 11 windows when opening and closing the overview 20 times: Average 3.1 ms -> 2.7 ms, Maximum: 17 ms -> 9 ms
The maximum time spent allocating is worth a look here because a lot of the changes this MR makes only affect the layout time of the first frame when opening the overview.