mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Demote Photos.framework image requests to UserInitiated quality of service
This commit is contained in:
@@ -606,6 +606,10 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
||||
}
|
||||
}];
|
||||
}];
|
||||
if (AS_AT_LEAST_IOS8) {
|
||||
// If you don't set this, iOS will sometimes infer NSQualityOfServiceUserInteractive and promote the entire queue to that level, damaging system responsiveness
|
||||
newImageRequestOp.qualityOfService = NSQualityOfServiceUserInitiated;
|
||||
}
|
||||
_phImageRequestOperation = newImageRequestOp;
|
||||
[phImageRequestQueue addOperation:newImageRequestOp];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user