Prepare CultMesh providers off the Unity main thread
This commit is contained in:
parent
603e998b30
commit
f75468e7f4
6 changed files with 77 additions and 20 deletions
|
|
@ -57,8 +57,12 @@ public sealed class GenericEveUnityLauncher : MonoBehaviour
|
|||
while (true)
|
||||
{
|
||||
var connected = false;
|
||||
var preparation = _provider.PrepareAsync();
|
||||
while (!preparation.IsCompleted)
|
||||
yield return null;
|
||||
try
|
||||
{
|
||||
preparation.GetAwaiter().GetResult();
|
||||
var presentation = _bootstrap.Mount();
|
||||
LowerSurface(_provider.CurrentDocument);
|
||||
Debug.Log($"Connected generic Eve client: {_provider.Selection?.ProviderId} / {_provider.Selection?.SurfaceId} / {presentation.ActiveEntities} entities");
|
||||
|
|
|
|||
Reference in a new issue