мой код FPS
Код: Выделить всё
void showFPS()
{
// Measure speed
double currentTime = glfwGetTime();
nbFrames++;
if ( currentTime - lastTime >= 1.0 ){ // If last cout was more than 1 sec ago
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/18412120/displaying-fps-in-glfw-window-title[/url]
Мобильная версия