public static void Main() { ProfileWriter.BeginSession("Startup", "BootProfile-Startup.json"); Logger.Init(); var app = new SandboxApp(Veldrid.GraphicsBackend.OpenGL); ProfileWriter.EndSesison(); ProfileWriter.BeginSession("Runtime", "BootProfile-Runtime.json"); app.Run(); ProfileWriter.EndSesison(); ProfileWriter.BeginSession("Shutdown", "BootProfile-Shutdown.json"); app.Dispose(); ProfileWriter.EndSesison(); }
static void Main() { using (var sandbox = new SandboxApp()) sandbox.Run(); }