mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
[Temp] Add debug option for the upgraded entity input panel
This commit is contained in:
parent
5e285ffce3
commit
96a410fc14
5 changed files with 78 additions and 30 deletions
|
|
@ -704,7 +704,15 @@ public final class AnimationCacheImpl: AnimationCache {
|
|||
|
||||
init(queue: Queue, basePath: String, allocateTempFile: @escaping () -> String) {
|
||||
self.queue = queue
|
||||
self.fetchQueues = (0 ..< 2).map { _ in Queue() }
|
||||
|
||||
let fetchQueueCount: Int
|
||||
if ProcessInfo.processInfo.activeProcessorCount > 2 {
|
||||
fetchQueueCount = 4
|
||||
} else {
|
||||
fetchQueueCount = 2
|
||||
}
|
||||
|
||||
self.fetchQueues = (0 ..< fetchQueueCount).map { i in Queue(name: "AnimationCacheImpl-Fetch\(i)", qos: .default) }
|
||||
self.basePath = basePath
|
||||
self.allocateTempFile = allocateTempFile
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue