mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
91b9a605fa
commit
a4b30b5b90
2 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -86,7 +86,7 @@ void Net_GetPackets(void)
|
||||||
{
|
{
|
||||||
timerUpdate();
|
timerUpdate();
|
||||||
MUSIC_Update();
|
MUSIC_Update();
|
||||||
S_Cleanup();
|
S_Update();
|
||||||
|
|
||||||
G_HandleSpecialKeys();
|
G_HandleSpecialKeys();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue