Discussion:
[hlcoders] Bizarre Demo Playback Bug
Aidan Sojourner
2016-04-13 06:16:22 UTC
Permalink
Hey all,

I'm working on a mod using the Source SDK Base 2013 Multiplayer and
we're having some very strange issues with recording and playing back a
demo. The demo will record as normal, and playback is normal but then
sometimes will lag and stutter horribly, after which the recording will
be jerky, as if it was missing frames/ticks.

I've narrowed down the cause of the stutter to the XY velocity of the
player, this is repeatable and independent of any other variables that I
have tested. It appears that as long as the player doesn't exceed
~320u/s horizontal velocity on 100 tick servers, or ~540u/s horizontal
velocity on 66 tick servers, playback is normal. When we reach this
threshold the recording will lag horribly and then either the
interpolation stops, or the demo begins recording at a lower tick rate;
something to that effect. If they drop below this velocity threshold,
the lag stops. This is such a strange reason for a demo to lag that I'd
much rather that I was wrong and called an idiot than be right and have
to narrow down the cause of this bug.
Here's a video demonstrating the problem:


Does anyone have any clue as to why this is happening? The GitHub repo
for our code is here, if that is any help:
https://github.com/momentum-mod/game

Thanks,
Aidan S.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Aaryaman Vasishta
2016-04-13 07:51:24 UTC
Permalink
Post by Aidan Sojourner
Hey all,
I'm working on a mod using the Source SDK Base 2013 Multiplayer and we're
having some very strange issues with recording and playing back a demo. The
demo will record as normal, and playback is normal but then sometimes will
lag and stutter horribly, after which the recording will be jerky, as if it
was missing frames/ticks.
This happens to me on CS:GO too. If I play around with the playback slider,
shifting it quickly from left to right, the demo will start lagging and
feel really jerky. I'd have to restart the game to fix it.

Cheers,
Aaryaman
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Aidan Sojourner
2016-04-16 08:46:44 UTC
Permalink
Well, I think we can table this issue for now. This bug appears to be
caused by interp settings being reset for some reason, resetting
cl_interp to 0 seconds fixes the issue for that client session. Maybe
this will apply to CS:GO as well, who knows.

I wish I understood /why /this was happening but at least we have a
solution :)

-Aidan S.
Post by Aaryaman Vasishta
Post by Aidan Sojourner
Hey all,
I'm working on a mod using the Source SDK Base 2013 Multiplayer and we're
having some very strange issues with recording and playing back a demo. The
demo will record as normal, and playback is normal but then sometimes will
lag and stutter horribly, after which the recording will be jerky, as if it
was missing frames/ticks.
This happens to me on CS:GO too. If I play around with the playback slider,
shifting it quickly from left to right, the demo will start lagging and
feel really jerky. I'd have to restart the game to fix it.
Cheers,
Aaryaman
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Loading...