From fe28e7350bcd017d4d4f67c174a9c281f73592e7 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 4 May 2022 20:17:35 -0400 Subject: [PATCH] Move screenshot code before timing --- src/d_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 5d29a90f..01b13474 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -798,6 +798,12 @@ void D_SRB2Loop(void) I_FinishUpdate(); // page flip or blit buffer } + // Only take screenshots after drawing. + if (moviemode) + M_SaveFrame(); + if (takescreenshot) + M_DoScreenShot(); + // Fully completed frame made. finishprecise = I_GetPreciseTime(); if (!singletics) @@ -812,12 +818,6 @@ void D_SRB2Loop(void) finishprecise = I_GetPreciseTime(); deltasecs = (double)((INT64)(finishprecise - enterprecise)) / I_GetPrecisePrecision(); deltatics = deltasecs * NEWTICRATE; - - // Only take screenshots after drawing. - if (moviemode) - M_SaveFrame(); - if (takescreenshot) - M_DoScreenShot(); } }