mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Move screenshot code before timing
This commit is contained in:
parent
8149a51192
commit
f085fc5cbb
1 changed files with 6 additions and 6 deletions
12
src/d_main.c
12
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue