mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix gif recording
This commit is contained in:
parent
74eac3e3f2
commit
db7e71d418
1 changed files with 21 additions and 22 deletions
43
src/d_main.c
43
src/d_main.c
|
|
@ -806,25 +806,27 @@ void D_SRB2Loop(void)
|
||||||
HW3S_BeginFrameUpdate();
|
HW3S_BeginFrameUpdate();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// don't skip more than 10 frames at a time
|
|
||||||
// (fadein / fadeout cause massive frame skip!)
|
|
||||||
if (realtics > 8)
|
|
||||||
realtics = 1;
|
|
||||||
|
|
||||||
// process tics (but maybe not if realtic == 0)
|
|
||||||
if (realtics > 0 || singletics)
|
if (realtics > 0 || singletics)
|
||||||
|
{
|
||||||
|
// don't skip more than 10 frames at a time
|
||||||
|
// (fadein / fadeout cause massive frame skip!)
|
||||||
|
if (realtics > 8)
|
||||||
|
realtics = 1;
|
||||||
|
|
||||||
|
// process tics (but maybe not if realtic == 0)
|
||||||
ticked = TryRunTics(realtics);
|
ticked = TryRunTics(realtics);
|
||||||
|
|
||||||
if (lastdraw || singletics || gametic > rendergametic)
|
if (lastdraw || singletics || gametic > rendergametic)
|
||||||
{
|
{
|
||||||
rendergametic = gametic;
|
rendergametic = gametic;
|
||||||
rendertimeout = entertic+TICRATE/17;
|
rendertimeout = entertic+TICRATE/17;
|
||||||
|
|
||||||
doDisplay = true;
|
doDisplay = true;
|
||||||
}
|
}
|
||||||
else if (rendertimeout < entertic) // in case the server hang or netsplit
|
else if (rendertimeout < entertic) // in case the server hang or netsplit
|
||||||
{
|
{
|
||||||
doDisplay = true;
|
doDisplay = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interp)
|
if (interp)
|
||||||
|
|
@ -894,13 +896,10 @@ void D_SRB2Loop(void)
|
||||||
D_Display();
|
D_Display();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doDisplay)
|
if (moviemode)
|
||||||
{
|
M_SaveFrame();
|
||||||
if (moviemode)
|
if (takescreenshot) // Only take screenshots after drawing.
|
||||||
M_SaveFrame();
|
M_DoScreenShot();
|
||||||
if (takescreenshot) // Only take screenshots after drawing.
|
|
||||||
M_DoScreenShot();
|
|
||||||
}
|
|
||||||
|
|
||||||
// consoleplayer -> displayplayers (hear sounds from viewpoint)
|
// consoleplayer -> displayplayers (hear sounds from viewpoint)
|
||||||
S_UpdateSounds(); // move positional sounds
|
S_UpdateSounds(); // move positional sounds
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue