1

GLFW 窗口大约需要 1 秒才能打开,是否有缩短它的方法?

std::cout << glfwGetTime() << '\n';
//glfwWindowHint(GLFW_DECORATED,0);//removes window borders for next created window
GLFWwindow * mainwindow = glfwCreateWindow(600,400,"FreemanGL",0,0);
std::cout << glfwGetTime();

第一个计时器小于 0.009 秒,第二个计时器约为 1.05 秒。

4

0 回答 0