示例#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();
        }
示例#2
0
文件: Program.cs 项目: rgracari/helio
 static void Main()
 {
     using (var sandbox = new SandboxApp())
         sandbox.Run();
 }