[Temp] Add debug option for the upgraded entity input panel

This commit is contained in:
Ali
2022-06-24 02:47:05 +01:00
parent 5e285ffce3
commit 96a410fc14
5 changed files with 78 additions and 30 deletions

View File

@@ -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
}