https://developer.apple.com/documentation/metalperformanceshaders/mpssetheapcacheduration(_:_:)?language=objc
MPSSetHeapCacheDuration(_:_:) | Apple Developer Documentation
Sets the timeout after which unused cached Metal heaps are released.
apple developerdocumentation