From 129aa864dd1be8ef8842ead605e5938e8f56e951 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Oct 2020 23:36:27 +0200 Subject: [PATCH] - do not accept any input in the first 0.1 seconds of running a screen job. This is to avoid accidental skipping by pending game input. --- source/core/screenjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index 8e7634c14..f5d4cf3bd 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -753,7 +753,6 @@ public: auto& job = jobs[index]; auto now = I_GetTimeNS(); bool processed = job.job->ProcessInput(); - bool skiprequest = inputState.CheckAllInput() && !processed; if (startTime == -1) { lastTime = startTime = now; @@ -763,6 +762,7 @@ public: clock += now - lastTime; if (clock == 0) clock = 1; } + bool skiprequest = clock > 100'000'000 && inputState.CheckAllInput() && !processed; lastTime = now; if (screenfade < 1.f && !M_Active())