CommunityToolkit/WindowsCommunityToolkit

ImageEx performance is very poor while loading lots of images at the same time

Open

#3.250 geöffnet am 24. Apr. 2020

Auf GitHub ansehen
 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C# (1.403 Forks)batch import
bug :bug:controls :control_knobs:help wanted

Repository-Metriken

Stars
 (5.708 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Describe the bug

If there is a page with lots of different images and load them use the ImageEx control, it will block the UI long time.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a blank page.
  2. Add lots of ImageEx controls to the page and set the IsCacheEnabled to true.
  3. Set different sources to each ImageEx control.
  4. Navigate to this page and it will take very long time to navigate.

Expected behavior

Don't block the UI as much as possible.

Screenshots

Use the framework Image control: Snipaste_2020-04-24_10-24-04 Use the toolkit ImageEx control: Snipaste_2020-04-24_10-24-29

Environment

NuGet Package(s): Microsoft.Toolkit.Uwp.UI.Controls

Package Version(s): 7.0.0-preview1

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • Insider Build (build number: )

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • Insider Build (xxxxx)

Device form factor:

  • Desktop
  • Xbox
  • Surface Hub
  • IoT

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • 2019 Preview (version: )

Additional context

Test app source code is here: https://github.com/h82258652/ToolkitImageExPerformanceTest

Contributor Guide