diff --git a/Aetheria.State.Daemon/Program.cs b/Aetheria.State.Daemon/Program.cs index 1bc47111a..1879ef08d 100644 --- a/Aetheria.State.Daemon/Program.cs +++ b/Aetheria.State.Daemon/Program.cs @@ -1521,21 +1521,6 @@ static async Task PublishDaemonApiDocumentsAsync( await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.ZoneRenderLatest) .ReplaceAsync(AetheriaRuntimeGameDocuments.ZoneRender(result.Frame)) .ConfigureAwait(false); - if (result.SoaFrame != null && result.SoaView != null && - string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal)) - { - await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest) - .ReplaceAsync(result.SoaView) - .ConfigureAwait(false); - var soaPublication = await soaPublisher.PublishAsync(result.SoaFrame).ConfigureAwait(false); - await node.MutableDocument(soaPublication.Body.RecordKey) - .ReplaceAsync(soaPublication.Body) - .ConfigureAwait(false); - await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.EveEntitySoaViewLatest) - .ReplaceAsync(soaPublication.View) - .ConfigureAwait(false); - } - if (publishTopology && result.ProviderAdvertisement != null) await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.DaemonProviderAdvertisement) .ReplaceAsync(result.ProviderAdvertisement) @@ -1590,6 +1575,22 @@ static async Task PublishDaemonApiDocumentsAsync( .ReplaceAsync(AetheriaRuntimeSurfaceDocuments.ToPortableSurface(gameSurface)) .ConfigureAwait(false); await PublishDaemonSectorMapSurfaceAsync(node, result.Frame, inputCatalog).ConfigureAwait(false); + // Keep low-bandwidth control state ahead of the bulk entity frame on the ordered + // subscription stream. Commands and beam feedback must not wait behind SoA delivery. + if (result.SoaFrame != null && result.SoaView != null && + string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal)) + { + await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest) + .ReplaceAsync(result.SoaView) + .ConfigureAwait(false); + var soaPublication = await soaPublisher.PublishAsync(result.SoaFrame).ConfigureAwait(false); + await node.MutableDocument(soaPublication.Body.RecordKey) + .ReplaceAsync(soaPublication.Body) + .ConfigureAwait(false); + await node.MutableDocument(AetheriaRuntimeVerseRecordKeys.EveEntitySoaViewLatest) + .ReplaceAsync(soaPublication.View) + .ConfigureAwait(false); + } if (!publishTopology) return; diff --git a/Aetheria.State.Import/Program.cs b/Aetheria.State.Import/Program.cs index d66ae6cb0..5b6279bf9 100644 --- a/Aetheria.State.Import/Program.cs +++ b/Aetheria.State.Import/Program.cs @@ -247,7 +247,7 @@ ResetMaterializedStateOutput(statePath); await using var node = await AetheriaStateNode.OpenAsync( statePath, "aetheria-legacy-catalog-import", - useDirectoryStore: false); + useDirectoryStore: true); await node.MutableDocument(AetheriaStateNode.LegacyCatalogQuarantineKey) .ReplaceAsync(new AetheriaLegacyCatalogQuarantine diff --git a/Aetheria.Unity/Packages/manifest.json b/Aetheria.Unity/Packages/manifest.json index a4ce67852..cea16c434 100644 --- a/Aetheria.Unity/Packages/manifest.json +++ b/Aetheria.Unity/Packages/manifest.json @@ -10,6 +10,6 @@ "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", "org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4", - "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71" + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72" } } diff --git a/Aetheria.Unity/Packages/packages-lock.json b/Aetheria.Unity/Packages/packages-lock.json index 60fb61a0a..c8a3f86a0 100644 --- a/Aetheria.Unity/Packages/packages-lock.json +++ b/Aetheria.Unity/Packages/packages-lock.json @@ -152,7 +152,7 @@ "hash": "e08fa08335f99e9edddeb706912eecfad07cb281" }, "org.gamecult.eve.unity-scene": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72", "depth": 0, "source": "git", "dependencies": { @@ -163,7 +163,7 @@ "com.unity.render-pipelines.universal": "17.4.0", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "261aa269db69a5fe5108632d0ca26627b29f2aef" + "hash": "edaf3b1e3bbb06a00b18b9faf508e27e33ae050b" }, "com.unity.modules.assetbundle": { "version": "1.0.0", diff --git a/scripts/verify-aetheria-unity-client.ps1 b/scripts/verify-aetheria-unity-client.ps1 index 9f65762c9..73975ba05 100644 --- a/scripts/verify-aetheria-unity-client.ps1 +++ b/scripts/verify-aetheria-unity-client.ps1 @@ -20,8 +20,8 @@ $expected = @{ "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4", "e08fa08335f99e9edddeb706912eecfad07cb281") "org.gamecult.eve.unity-scene" = @( - "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71", - "261aa269db69a5fe5108632d0ca26627b29f2aef") + "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72", + "edaf3b1e3bbb06a00b18b9faf508e27e33ae050b") } foreach ($packageName in $expected.Keys) {