Sleep between frames to have a constant frame rate

This commit is contained in:
Alex 2023-04-10 06:08:12 +03:00
parent 70e11f17e7
commit c8157a828a
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -229,6 +229,7 @@ void BootLogoAnimationThread()
free(img);
Display->SetBuffer(1);
TaskManager->Sleep(50);
}
int brightness = 100;
@ -237,6 +238,7 @@ void BootLogoAnimationThread()
brightness -= 10;
Display->SetBrightness(brightness, 1);
Display->SetBuffer(1);
TaskManager->Sleep(10);
}
}
@ -284,6 +286,7 @@ void ExitLogoAnimationThread()
free(img);
Display->SetBuffer(1);
TaskManager->Sleep(50);
}
int brightness = 100;
@ -292,6 +295,7 @@ void ExitLogoAnimationThread()
brightness -= 10;
Display->SetBrightness(brightness, 1);
Display->SetBuffer(1);
TaskManager->Sleep(10);
}
}