Keep provider discovery off the SoA hot path

This commit is contained in:
Meta Vens 2026-07-13 23:12:03 +01:00
commit 8881a3bbfe
2 changed files with 5 additions and 3 deletions

View file

@ -125,7 +125,7 @@ namespace GameCult.Eve.UnityScene
public void Refresh() public void Refresh()
{ {
EnsureOpen(); EnsureOpen();
ResolveAdvertisement(); ResolveAdvertisement(forceRefresh: true);
RefreshSurface(); RefreshSurface();
RefreshAssetCatalog(); RefreshAssetCatalog();
} }
@ -266,8 +266,10 @@ namespace GameCult.Eve.UnityScene
_networkRegistry); _networkRegistry);
} }
private void ResolveAdvertisement() private void ResolveAdvertisement(bool forceRefresh = false)
{ {
if (!forceRefresh && _advertisement != null && _advertisedSurface != null)
return;
var documents = _snapshot! var documents = _snapshot!
.FetchDocumentsAsync<EveProviderAdvertisementDocument>() .FetchDocumentsAsync<EveProviderAdvertisementDocument>()
.GetAwaiter() .GetAwaiter()

View file

@ -1,7 +1,7 @@
{ {
"name": "org.gamecult.eve.unity-scene", "name": "org.gamecult.eve.unity-scene",
"displayName": "Eve Unity Scene Lowering", "displayName": "Eve Unity Scene Lowering",
"version": "0.3.8", "version": "0.3.9",
"unity": "2021.3", "unity": "2021.3",
"description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.", "description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.",
"dependencies": { "dependencies": {