Skip to content

Commit 63bfe15

Browse files
authored
tweak(network): Reduce the minimum runahead latency limit from 10 to 4 (#1489)
1 parent e477aa7 commit 63bfe15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Generals/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727

2828
#include "GameNetwork/networkutil.h"
2929

30+
// TheSuperHackers @tweak Mauller 26/08/2025 reduce the minimum runahead from 10
31+
// This lets network games run at latencies down to 133ms when the network conditions allow
3032
Int MAX_FRAMES_AHEAD = 128;
31-
Int MIN_RUNAHEAD = 10;
33+
Int MIN_RUNAHEAD = 4;
3234
Int FRAME_DATA_LENGTH = (MAX_FRAMES_AHEAD+1)*2;
3335
Int FRAMES_TO_KEEP = (MAX_FRAMES_AHEAD/2) + 1;
3436

GeneralsMD/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727

2828
#include "GameNetwork/networkutil.h"
2929

30+
// TheSuperHackers @tweak Mauller 26/08/2025 reduce the minimum runahead from 10
31+
// This lets network games run at latencies down to 133ms when the network conditions allow
3032
Int MAX_FRAMES_AHEAD = 128;
31-
Int MIN_RUNAHEAD = 10;
33+
Int MIN_RUNAHEAD = 4;
3234
Int FRAME_DATA_LENGTH = (MAX_FRAMES_AHEAD+1)*2;
3335
Int FRAMES_TO_KEEP = (MAX_FRAMES_AHEAD/2) + 1;
3436

0 commit comments

Comments
 (0)