Lower reactive state without replica writes
This commit is contained in:
parent
a3c25ae9ae
commit
d6511974f0
2 changed files with 12 additions and 7 deletions
|
|
@ -870,7 +870,8 @@ namespace GameCult.Eve.UnityScene
|
|||
EveEntitySoaViewDocument.SchemaId,
|
||||
entityBodyId,
|
||||
fieldRefs,
|
||||
fieldRefs.Length > 0 ? new[] { EveFieldsSchemas.Splats } : null))
|
||||
fieldRefs.Length > 0 ? new[] { EveFieldsSchemas.Splats } : null),
|
||||
CultNetDatabaseSubscriptionDeliveryMode.Live)
|
||||
.GetAwaiter().GetResult();
|
||||
TraceHotState($"initial subscription documents=[{string.Join(",", initial.Select(value => value.GetType().Name))}]");
|
||||
foreach (var document in initial)
|
||||
|
|
@ -888,7 +889,8 @@ namespace GameCult.Eve.UnityScene
|
|||
var initial = _entitySubscriptions.SubscribeAsync(
|
||||
"eve-unity-fields",
|
||||
recordKeys: fieldRefs,
|
||||
schemaIds: new[] { EveFieldsSchemas.Splats })
|
||||
schemaIds: new[] { EveFieldsSchemas.Splats },
|
||||
deliveryMode: CultNetDatabaseSubscriptionDeliveryMode.Live)
|
||||
.GetAwaiter().GetResult();
|
||||
foreach (var fields in initial.OfType<EveFieldsSplatsDocument>())
|
||||
_liveDocuments.Enqueue(fields);
|
||||
|
|
@ -911,7 +913,8 @@ namespace GameCult.Eve.UnityScene
|
|||
var initialEmbedded = _subscriptions.SubscribeAsync(
|
||||
$"eve-unity-embedded-surface-{index}",
|
||||
recordKeys: new[] { slot.DocumentId },
|
||||
schemaIds: new[] { EveSurfaceDocument.SchemaId })
|
||||
schemaIds: new[] { EveSurfaceDocument.SchemaId },
|
||||
deliveryMode: CultNetDatabaseSubscriptionDeliveryMode.Live)
|
||||
.GetAwaiter().GetResult()
|
||||
.OfType<EveSurfaceDocument>()
|
||||
.FirstOrDefault();
|
||||
|
|
@ -927,7 +930,8 @@ namespace GameCult.Eve.UnityScene
|
|||
"eve-unity-input-capability",
|
||||
recordKeys: new[] { inputCapabilityRef },
|
||||
schemaIds: new[] { EveInputCapabilityDocument.SchemaId },
|
||||
includeSnapshot: false)
|
||||
includeSnapshot: false,
|
||||
deliveryMode: CultNetDatabaseSubscriptionDeliveryMode.Live)
|
||||
.GetAwaiter().GetResult();
|
||||
}
|
||||
var assetCatalogRef = RequireWorldInteraction().AssetManifestRecordRef;
|
||||
|
|
@ -943,7 +947,8 @@ namespace GameCult.Eve.UnityScene
|
|||
_subscriptions.SubscribeAsync(
|
||||
"eve-unity-receipts",
|
||||
schemaIds: new[] { EveCommandReceiptDocument.SchemaId },
|
||||
includeSnapshot: false)
|
||||
includeSnapshot: false,
|
||||
deliveryMode: CultNetDatabaseSubscriptionDeliveryMode.Live)
|
||||
.GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "org.gamecult.eve.unity-scene",
|
||||
"displayName": "Eve Unity Scene Lowering",
|
||||
"version": "0.3.82",
|
||||
"version": "0.3.83",
|
||||
"unity": "6000.0",
|
||||
"description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.",
|
||||
"dependencies": {
|
||||
"org.gamecult.cultlib": "1.0.24",
|
||||
"org.gamecult.cultlib": "1.0.25",
|
||||
"org.gamecult.eve.plugin-fields": "0.2.3",
|
||||
"org.gamecult.eve.surface": "0.2.4",
|
||||
"com.unity.mathematics": "1.3.2",
|
||||
|
|
|
|||
Reference in a new issue