Skip to content

Does the Fyne library redraw all the controls in the container entirely, even if only one button is clicked? #5562

Closed Answered by andydotxyz
a0k1i2n3g asked this question in Q&A
Discussion options

You must be logged in to vote

Since all the controls within a container need to be completely redrawn twice due to the click and hover effects

This is not correct - though as above it depends on your definition of redrawn.
We cache everything after it is drawn so that this can be avoided. What has changed will be redrawn but the rest will remain in cache. This is all then sent to the GPU for the next frame.

There is no "partial frame" so every update is a complete blit to the screen, but as I said before this part is very fast.

On a button tap there are not only 2 refreshes - there are more like 18 as we have a tap animation on the button UI. You can disable that with a build tag as at https://docs.fyne.io/explore/c…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@dweymouth
Comment options

@andydotxyz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@dweymouth
Comment options

@andydotxyz
Comment options

@a0k1i2n3g
Comment options

@andydotxyz
Comment options

Answer selected by a0k1i2n3g
@a0k1i2n3g
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants