public static void Run() { if (s_mainMsgWin == null) { return; } while (!s_mainMsgWin.ShouldClose()) { /* Render here */ /* Swap front and back buffers */ s_mainMsgWin.RenderDel?.Invoke(); /* Poll for and process events */ //Glfw3.glfwPollEvents(); Glfw3.glfwWaitEvents(); } Glfw3.glfwTerminate(); }