Kolizja V2

This commit is contained in:
Pc
2025-01-19 01:35:24 +01:00
parent 1a85de2c23
commit 7d33f8a997
2 changed files with 126 additions and 135 deletions

View File

@@ -1,3 +1,4 @@
#pragma once
#include <iostream>
#include <chrono>
@@ -13,7 +14,7 @@ public:
// Aktualizujemy FPS co 1 sekundê
if (elapsed.count() >= 1.0) {
double fps = frameCount / elapsed.count();
std::cout << "FPS: " << fps << std::endl;
std::cout << "FPS: " << fps << "\n";
frameCount = 0;
lastTime = currentTime;
}