Fyne: Scrolling is really slow

Created on 6 Nov 2019  路  15Comments  路  Source: fyne-io/fyne

I just had a play with Fyne's demo app on Mac 10.14. A few things stood out, one of which is that scrolling is really slow. If you want a good first impression I'd fix that!

bug question

Most helpful comment

Please feel free to report all bugs if they do not already appear in the issue list :)
We have about 3 weeks to next release and want to make it great!

With regards to slow scroll can you report more about your device, perhaps with a video capture?
I cannot replicate what you are describing unfortunately.
Could you also confirm the version of Fyne you are using?

All 15 comments

Thanks for the feedback. Can you confirm what scroll action you were performing? Is this a scroll wheel, arrow keys, touchpad gesture or click and drag scroll bar?

Both scroll wheel and dragging the scroll bar with an external mouse. There were other issues too, but I feel like this is the biggest thing that put me off, and I don't want to deluge you with issues that you're probably aware of. :-)

Please feel free to report all bugs if they do not already appear in the issue list :)
We have about 3 weeks to next release and want to make it great!

With regards to slow scroll can you report more about your device, perhaps with a video capture?
I cannot replicate what you are describing unfortunately.
Could you also confirm the version of Fyne you are using?

Sure, I'm using 98fc45eeb2f12a3d3d0ad62f485883130e292312, Macbook Pro with Intel Iris Pro graphics. Easily capable of scrolling! Here's a screen capture, first with the trackpad, and then the mouse:

fyne_scrolling.mov.zip

Hmm, yes I think I see from that.
I expect it relates to object caching that will be part of the list widget proposed for 1.2 release.

However if you were able to switch to Fyne develop branch you could tell if the work we have done so far improves it for you :)

I tried develop and it was maybe slightly better but I might be imagining it. Still really bad.

Is it possible to check the v1.2.0-beta1 tag and see if you think this is better?
I think we probably have lots of improvement to be made in this area but interested to see what your tests show.

I just tried develop and unfortunately the "Scroll" tab with the horizontal and vertical buttons is still really slow. The "Full Scroll" page is fine though.

This is very strange as it is incredibly speedy at this end.
If it's just the items with text scrolling then I suspect we have a chaching bug in the calculations.
Is it possible to run a profiler to see where it's struggling on your current setup?

Here you go. Not sure how useful this is, but it does seem to spend a suspicious amount of time deleting textures.

pprof001.svg.zip

Thanks for this @Timmmm it's very strange that the CPU usage is not higher overall with the type of lag you are describing.
I have made another change that's on develop now which may help.
When you got that profile output was it during some intensive scrolling?

Comments from @toaster are that this is way better now. What do you find @Timmmm ?

Yep much better for me too.

Scrolling through a label with lots of text is extremely slow and buggy. In addition, the entire program slows down considerably.

Scrolling is generally sluggish for me, but the whole program grinds almost to a halt when I put large amounts of text in a label.

Can you please confirm the code for this label, I.e. what settings (wrap, style etc)?
Text handling does indeed need optimisation and we are working on possible solutions.

Additionally you mentioned it being buggy - can you expand on the types of bug you see when scrolling?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steveoc64 picture steveoc64  路  7Comments

mhf-ir picture mhf-ir  路  6Comments

gazhayes picture gazhayes  路  8Comments

Geo25rey picture Geo25rey  路  7Comments

Jacalz picture Jacalz  路  4Comments