glfwSwapInterval(0);
float last_time = static_cast<float>(glfwGetTime());
while (!window_->should_close())
{
float current_time = static_cast<float>(glfwGetTime());
frames_++;
if (current_time - last_time >= 1.0)
{
fps_ = frames_ / (current_time - last_time);
frames_ = 0;
last_time = current_time;
}
루프문
인데 if 문 바로 밑에 std::cout<<"\n"; 추가하니 110 정도에서 노는 fps가 170이 되는데,,
뭐지?/./
루프문 안에는 다른 cout문 없는데
IO작업했다가 빠져나오는 걸로 판정나서 스케쥴링 우선순위 부스팅된 거 아님? 잘 몰루?
릴리즈로 빌드하니 안그럼 ㅇㅇ 스오플에 물어봤는데 릴리즈모드에서 fps체크안하면 의미없다네 - dc App