mirror of
https://github.com/Ishan09811/pine.git
synced 2025-04-28 09:35:08 +00:00
fx
This commit is contained in:
parent
89cc678cf3
commit
de5757c5b1
@ -161,7 +161,7 @@ namespace skyline::gpu {
|
|||||||
|
|
||||||
auto endTime = std::chrono::high_resolution_clock::now();
|
auto endTime = std::chrono::high_resolution_clock::now();
|
||||||
auto frameDuration = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime);
|
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) {
|
if (frameDuration > frameTimeThreshold) {
|
||||||
LOGW("Frame skipped due to long processing time: {}ms", frameDuration.count());
|
LOGW("Frame skipped due to long processing time: {}ms", frameDuration.count());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user