From fa312f0b2b501883a664596b2eb057b994879296 Mon Sep 17 00:00:00 2001 From: David Wursteisen Date: Fri, 12 Jan 2024 22:33:04 +0100 Subject: [PATCH] Update the concurrency of the merge to 128 instead of 16 so more resources can be loaded. --- .../kotlin/com/github/minigdx/tiny/engine/GameEngine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny-engine/src/commonMain/kotlin/com/github/minigdx/tiny/engine/GameEngine.kt b/tiny-engine/src/commonMain/kotlin/com/github/minigdx/tiny/engine/GameEngine.kt index d1053b78..79ef1a28 100644 --- a/tiny-engine/src/commonMain/kotlin/com/github/minigdx/tiny/engine/GameEngine.kt +++ b/tiny-engine/src/commonMain/kotlin/com/github/minigdx/tiny/engine/GameEngine.kt @@ -161,7 +161,7 @@ class GameEngine( resourcesScope.launch { resources.asFlow() - .flatMapMerge { resource -> resource } + .flatMapMerge(concurrency = 128) { resource -> resource } .collect(ScriptsCollector(events)) }