From 210f3e54ffe27754c2f3698b2e2c1642e4d09149 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 10 Feb 2018 22:58:34 +0000 Subject: [PATCH] Apply the FPS limiter to EVENT_SCREEN. git-svn-id: https://svn.eduke32.com/eduke32@6641 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gameexec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index 07ad97e61..e92e5aa76 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -1237,6 +1237,9 @@ void Screen_Play(void) { G_HandleAsync(); + if (!G_FPSLimit()) + continue; + clearallviews(0); if (VM_OnEventWithReturn(EVENT_SCREEN, g_player[screenpeek].ps->i, screenpeek, I_CheckAllInput())) running = 0;