Skip to content

Commit

Permalink
Removes intermediate caching to get better performance in UIImageView (
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Mar 30, 2021
1 parent 6ef436d commit 3560de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/BrightroomEngine/Core/EditingStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ open class EditingStack: Equatable, StoreComponentType {
cgImage: cgImage
)
.oriented(metadata.orientation)
.insertingIntermediate(cache: true)

let editingSourceImage = _editingSourceImage

Expand All @@ -273,7 +272,7 @@ open class EditingStack: Equatable, StoreComponentType {
metadata: metadata,
initialEditing: initialEdit,
currentEdit: initialEdit,
thumbnailImage: CIImage(cgImage: image.loadThumbnailCGImage(maxPixelSize: 180)).oriented(metadata.orientation).insertingIntermediate(cache: true),
thumbnailImage: CIImage(cgImage: image.loadThumbnailCGImage(maxPixelSize: 180)).oriented(metadata.orientation),
editingSourceImage: editingSourceImage,
editingPreviewImage: initialEdit.filters.apply(to: editingSourceImage)
)
Expand Down

0 comments on commit 3560de5

Please sign in to comment.