Use the new frame timing to implement the menu throttle directly

This commit is contained in:
Henrik Rydgård committed 2023-08-16 13:56:12 +02:00
1 parent cc75979f5b
commit 864528303a
8 files changed
+29 -34

No files matched your search

+2 -1
View File
@@ -1164,12 +1164,13 @@ void NativeFrame(GraphicsContext *graphicsContext) {
g_screenManager->getUIContext()->SetTintSaturation(g_Config.fUITint, g_Config.fUISaturation);
// All actual rendering happen in here.
g_frameTiming.BeforeCPUSlice();
// All actual rendering happen in here.
g_screenManager->render();
if (g_screenManager->getUIContext()->Text()) {
g_screenManager->getUIContext()->Text()->OncePerFrame();
}
g_frameTiming.AfterCPUSlice();
ui_draw2d.PopDrawMatrix();
ui_draw2d_front.PopDrawMatrix();