Exemple #1
0
        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();
        }
Exemple #2
0
 static void Main()
 {
     using (var sandbox = new SandboxApp())
         sandbox.Run();
 }