Move S_Update() out of game loop and into Net_GetPackets()

This improves, but doesn't fix, the issue with sound popping when the player angle changes.

git-svn-id: https://svn.eduke32.com/eduke32@7676 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:56:29 +00:00 committed by Christoph Oelckers
parent 91b9a605fa
commit a4b30b5b90
2 changed files with 1 additions and 3 deletions

View file

@ -6779,8 +6779,6 @@ MAIN_LOOP_RESTART:
if (g_gameUpdateAvgTime < 0.f) if (g_gameUpdateAvgTime < 0.f)
g_gameUpdateAvgTime = g_gameUpdateTime; g_gameUpdateAvgTime = g_gameUpdateTime;
g_gameUpdateAvgTime = ((GAMEUPDATEAVGTIMENUMSAMPLES-1.f)*g_gameUpdateAvgTime+g_gameUpdateTime)/((float) GAMEUPDATEAVGTIMENUMSAMPLES); g_gameUpdateAvgTime = ((GAMEUPDATEAVGTIMENUMSAMPLES-1.f)*g_gameUpdateAvgTime+g_gameUpdateTime)/((float) GAMEUPDATEAVGTIMENUMSAMPLES);
S_Update();
} }
G_DoCheats(); G_DoCheats();

View file

@ -86,7 +86,7 @@ void Net_GetPackets(void)
{ {
timerUpdate(); timerUpdate();
MUSIC_Update(); MUSIC_Update();
S_Cleanup(); S_Update();
G_HandleSpecialKeys(); G_HandleSpecialKeys();