0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-28 09:35:08 +00:00
This commit is contained in:
Ishan09811 2025-01-17 13:55:07 +05:30 committed by GitHub
parent 89cc678cf3
commit de5757c5b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ namespace skyline::gpu {
auto endTime = std::chrono::high_resolution_clock::now();
auto frameDuration = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime);
const auto frameTimeThreshold = 16ms; // 16ms for 60 FPS
const auto frameTimeThreshold = std::chrono::milliseconds(16); // 16ms for 60 FPS
if (frameDuration > frameTimeThreshold) {
LOGW("Frame skipped due to long processing time: {}ms", frameDuration.count());