fix for windoze
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m34s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m34s
This commit is contained in:
@@ -27,7 +27,7 @@ CPMAddPackage(
|
||||
|
||||
CPMAddPackage(
|
||||
NAME ReWindow
|
||||
URL https://git.redacted.cc/Redacted/ReWindow/archive/Prerelease-13.zip
|
||||
URL https://git.redacted.cc/Redacted/ReWindow/archive/Prerelease-15.zip
|
||||
)
|
||||
|
||||
CPMAddPackage(
|
||||
|
4
main.cpp
4
main.cpp
@@ -121,7 +121,7 @@ public:
|
||||
bool fov_increasing = true;
|
||||
unsigned long long frames = 0;
|
||||
bool framerate_measurement = false;
|
||||
std::chrono::system_clock::time_point start;
|
||||
std::chrono::high_resolution_clock::time_point start;
|
||||
float elapsed = 0.0f;
|
||||
|
||||
void display() {
|
||||
@@ -200,7 +200,7 @@ public:
|
||||
|
||||
if (framerate_measurement) {
|
||||
frames++;
|
||||
std::chrono::system_clock::time_point stop = std::chrono::high_resolution_clock::now();
|
||||
std::chrono::high_resolution_clock::time_point stop = std::chrono::high_resolution_clock::now();
|
||||
std::chrono::duration<float> frame_time = stop - start;
|
||||
elapsed += frame_time.count();
|
||||
if (elapsed >= 1)
|
||||
|
Reference in New Issue
Block a user