Prepare CultMesh providers off the Unity main thread

This commit is contained in:
Meta Vens 2026-07-18 18:38:07 +01:00
commit f75468e7f4
6 changed files with 77 additions and 20 deletions

View file

@ -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");