Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Libraries/MLXVLM/MediaProcessing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ public struct ProcessedFrames {
// scan accumulates thousands of cached intermediate surfaces and hits the
// per-process IOSurface limit of 16384, crashing the render pipeline.
// Batch-processing never re-renders the same frame twice, so the cache buys nothing.
private let context = CIContext(options: [.cacheIntermediates: false])
#if compiler(>=6.2) // proxy check for macOS 26 SDK, where CIContext is Sendable
private let context = CIContext(options: [.cacheIntermediates: false])
#else
nonisolated(unsafe) private let context = CIContext(options: [.cacheIntermediates: false])
#endif

/// Collection of methods for processing media (images, video, etc.).
///
Expand Down
Loading