Skip to content

Fix: Replace BitmapImage.SetSourceAsync with SoftwareBitmapSource for…#18267

Open
workbysaran wants to merge 1 commit intofiles-community:mainfrom
workbysaran:sg/fix-thumbnail-loading-use-swbsource
Open

Fix: Replace BitmapImage.SetSourceAsync with SoftwareBitmapSource for…#18267
workbysaran wants to merge 1 commit intofiles-community:mainfrom
workbysaran:sg/fix-thumbnail-loading-use-swbsource

Conversation

@workbysaran
Copy link
Contributor

Resolved / Related Issues
Replaced 'BitmapImage.SetSourceAsync' with 'SoftwareBitmapSource.SetBitmapAsync' in the thumbnail loading path to eliminate WIC decoder contention under concurrent load.

Changes

  • Pixel decoding moved off the UI thread via 'BitmapDecoder' ('ToSoftwareBitmapAsync')
  • Only the final GPU upload ('SetBitmapAsync') runs on the UI thread

Steps used to test these changes

  1. Open a folder with many image files
  2. Scroll rapidly through the folder
  3. Navigate between folders and verify thumbnails load correctly
  4. Check Grid and other layouts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant