Wait did this legitimately mostly fix it?!

I think it was the realtics check...?!

The issue is still here but significantly better... I THINK?? I can't tell if I just hate this code so much I'm telling myself that it's better so I don't have to look at it anymore
This commit is contained in:
Sally Coolatta 2022-03-27 22:16:51 -04:00
parent 8933fe12f6
commit 74eac3e3f2
2 changed files with 12 additions and 4 deletions

View file

@ -5149,7 +5149,7 @@ boolean TryRunTics(tic_t realtics)
if (demo.playback)
{
neededtic = gametic + realtics * (gamestate == GS_LEVEL ? cv_playbackspeed.value : 1);
neededtic = gametic + realtics;
// start a game after a demo
maketic += realtics;
firstticstosend = maketic;

View file

@ -779,14 +779,21 @@ void D_SRB2Loop(void)
refreshdirmenu = 0; // not sure where to put this, here as good as any?
if (demo.playback && gamestate == GS_LEVEL)
{
// Nicer place to put this.
realtics = realtics * cv_playbackspeed.value;
}
#ifdef DEBUGFILE
if (!realtics)
if (debugload)
debugload--;
#endif
doDisplay = false;
interp = R_UsingFrameInterpolation();
doDisplay = false;
ticked = false;
if (!realtics && !singletics && !interp)
{
@ -805,7 +812,8 @@ void D_SRB2Loop(void)
realtics = 1;
// process tics (but maybe not if realtic == 0)
ticked = TryRunTics(realtics);
if (realtics > 0 || singletics)
ticked = TryRunTics(realtics);
if (lastdraw || singletics || gametic > rendergametic)
{
@ -843,7 +851,7 @@ void D_SRB2Loop(void)
if (!(paused || P_AutoPause()))
{
#if 1
#if 0
CONS_Printf("prevtime = %f\n", prevtime);
CONS_Printf("entertime = %f\n", entertime);
CONS_Printf("tictime = %f\n", tictime);