early-access version 2839

This commit is contained in:
pineappleEA
2022-07-16 23:30:32 +02:00
parent 8f0f296c7c
commit b866bff3f2
4 changed files with 11 additions and 8 deletions

View File

@@ -299,7 +299,10 @@ s64 NVFlinger::GetNextTicks() const {
speed_scale = 0.01f;
}
}
return static_cast<s64>(((1000000000 * (1LL << swap_interval)) / max_hertz) * speed_scale);
const auto next_ticks = ((1000000000 * (1LL << swap_interval)) / max_hertz);
return static_cast<s64>(speed_scale * static_cast<float>(next_ticks));
}
} // namespace Service::NVFlinger