its whats on the tin; culls raw photos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: cull more images from cache

+5 -6
+1 -2
cull/Services/ThumbnailCache.swift
··· 19 19 memoryCache.countLimit = 500 20 20 memoryCache.totalCostLimit = 100 * 1024 * 1024 // 100 MB 21 21 22 - previewCache.countLimit = 110 23 - previewCache.totalCostLimit = 512 * 1024 * 1024 // 512 MB 22 + previewCache.countLimit = 70 24 23 25 24 try? FileManager.default.createDirectory(at: diskCacheURL, withIntermediateDirectories: true) 26 25 }
+2 -2
cull/Views/ImportView.swift
··· 95 95 } 96 96 } 97 97 98 - // Phase 3: Preload first 50 full-res previews (98-100%) 99 - let initialPreviews = Array(allPhotos.prefix(50)) 98 + // Phase 3: Preload first 30 full-res previews (98-100%) 99 + let initialPreviews = Array(allPhotos.prefix(30)) 100 100 var lastPreviewReported = 0.98 101 101 await c.preloadAllPreviews(photos: initialPreviews) { p in 102 102 let mapped = 0.98 + p * 0.02
+2 -2
cull/Views/PhotoViewer.swift
··· 6 6 @State private var displayImage: NSImage? 7 7 @State private var displayedPhotoID: UUID? 8 8 9 - private let lookaheadCount = 50 10 - private let lookbehindCount = 50 9 + private let lookaheadCount = 30 10 + private let lookbehindCount = 30 11 11 12 12 var body: some View { 13 13 ZStack {