Repository navigation
feat(online): Turn on Wi-Fi media streaming mode while a match runs - #667
Open
tintinhamans wants to merge 14 commits into
Open
tintinhamans wants to merge 14 commits into
tintinhamans wants to merge 14 commits into
Conversation
tintinhamans
force-pushed
the
arctic/go/stack2/12-wifi-low-latency
branch
4 times, most recently
from
October 26, 2026 15:39
d43ab08 to
2f36df5
Compare
…and forwarded traffic
tintinhamans
force-pushed
the
arctic/go/stack2/12-wifi-low-latency
branch
from
October 28, 2026 01:47
2f36df5 to
350f956
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge after #666.
On Wi-Fi, background network scans can cause latency spikes, and in a lockstep game every player sees that as a stall. While a match runs the game now asks the Wi-Fi driver for media streaming mode for the adapter that carries the game traffic, found from the default route. On Ethernet or without Wi-Fi nothing happens.
wlanapi.dllis loaded at run time and a worker thread makes the calls, since they can block in the WLAN service. It only sets the mode when it is not on yet, rechecks on a Wi-Fi notification and every 60 s, and reopens the WLAN handle if the service restarts. If Windows refuses the call, the failure is logged and nothing changes. The mode applies to the whole adapter while it runs, so other apps on it are affected too. It starts inNGMPGame::launchGameand ends in~Networkand the online services shutdown.connection.wifi_low_latencyin the service config turns it off, it is on by default.Tested: builds x86 Release
z_generals. Not run in a match, and no stalls were measured with and without it.