Keep provider discovery off the SoA hot path
This commit is contained in:
parent
4733ac2719
commit
8881a3bbfe
2 changed files with 5 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Reference in a new issue