using System.Threading.Tasks; using Robust.Shared; using Robust.Shared.Resources; namespace Robust.Client; /// /// Logic for "warming up" things like slow static constructors concurrently. /// internal static class ClientWarmup { public static void RunWarmup() { Task.Run(WarmupCore); } private static void WarmupCore() { // Get ImageSharp loaded. _ = SixLabors.ImageSharp.Configuration.Default; SharedWarmup.WarmupCore(); // Preload the JSON loading code. RsiLoading.Warmup(); } }