mirror of
https://github.com/esuo1198/TaikoArcadeLoader.git
synced 2026-10-03 12:18:08 +03:00
Move to C++ coding style, cleanup current code (#18)
Used CLion to unify our current code
This commit is contained in:
@@ -40,8 +40,7 @@ Update () {
|
||||
QueryPerformanceFrequency (&PerformanceCount3);
|
||||
i = 0;
|
||||
t = 1000.0 / static_cast<double> (PerformanceCount3.QuadPart);
|
||||
auto v = t * 2147483648.0;
|
||||
if (60000.0 > v) {
|
||||
if (auto v = t * 2147483648.0; 60000.0 > v) {
|
||||
while (true) {
|
||||
++i;
|
||||
v *= 2.0;
|
||||
@@ -54,7 +53,7 @@ Update () {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((static_cast<double> ((PerformanceCount2.QuadPart >> i) - PerformanceCount1.QuadPart) * t) >= targetFrameTime) break;
|
||||
if (static_cast<double> ((PerformanceCount2.QuadPart >> i) - PerformanceCount1.QuadPart) * t >= targetFrameTime) break;
|
||||
|
||||
SleepEx (0, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user