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

View file

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