AvaloniaUI / XamlControlsGallery

MIT License
159 stars 30 forks source link

Flickering with IsIndeterminate=True progress bar #17

Closed topeterk closed 2 years ago

topeterk commented 2 years ago

The whole windows flickers on my machine when the infinity-progress bar is "running/shown". Removing <ProgressBar IsIndeterminate="True" Margin="0 40" /> the flickering stops and the CPU is less stressed and the garbage collector is not running all the time.

With and without the progress bar: image image

I'm still an Avalonia beginner, so I am not sure if this is an issue of the gallery example or a core issue of the progress bar / UI updates.

maxkatz6 commented 2 years ago

Control gallery wasn't updated in a while, so flickering might be solved with newer avalonia version.

But memory traffic is expected for the current 0.10.x version, as each new animation tick creates new visuals that needs to be garbage collected. It was solved with a new renderer in the 11.0 nightly builds.

topeterk commented 2 years ago

When this issue is related to Avalonia itself and is probably already fixed, I think we can close this issue here.