mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 22:21:05 +00:00
Move screenshot code before timing
This commit is contained in:
parent
bd73256390
commit
40c2f66a5a
1 changed files with 6 additions and 6 deletions
12
src/d_main.c
12
src/d_main.c
|
@ -893,6 +893,12 @@ void D_SRB2Loop(void)
|
|||
PS_STOP_TIMING(ps_swaptime);
|
||||
}
|
||||
|
||||
// Only take screenshots after drawing.
|
||||
if (moviemode)
|
||||
M_SaveFrame();
|
||||
if (takescreenshot)
|
||||
M_DoScreenShot();
|
||||
|
||||
// Fully completed frame made.
|
||||
finishprecise = I_GetPreciseTime();
|
||||
if (!singletics)
|
||||
|
@ -907,12 +913,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