Page MenuHomeWildfire Games

Reduce time needed for STUN
AbandonedPublic

Authored by Dunedan on Aug 13 2024, 8:33 AM.
Tags
None
Referenced Files
F5208012: D5321.diff
Wed, Sep 18, 11:34 PM
Unknown Object (File)
Wed, Sep 4, 6:50 AM
Unknown Object (File)
Fri, Aug 23, 10:12 AM
Unknown Object (File)
Wed, Aug 21, 8:23 PM
Unknown Object (File)
Tue, Aug 20, 8:18 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

In my tests this reduced the time necessary for starting to host a game or joining a hosted game by ~180ms.

Test Plan

Test that hosting and joining games with STUN still works reliable and that it's faster than before.

Event Timeline

Build failure - The Moirai have given mortals hearts that can endure.

builderr-debug-macos.txt
fatal error: malformed or corrupted AST file: 'could not find file '/Users/wfg/Jenkins/workspace/macos-differential/build/workspaces/gcc/../../../libraries/source/spidermonkey/include-unix-debug/mozilla/Compiler.h' referenced by AST file 'obj/network_Debug/precompiled.h.gch''
1 error generated.
make[1]: *** [obj/network_Debug/StunClient.o] Error 1
make: *** [network] Error 2

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7983/display/redirect

Dunedan published this revision for review.Aug 13 2024, 8:36 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/9059/display/redirect

Stan added inline comments.
source/network/StunClient.cpp
186

Does that explain the 180ms speedup?

365

You should create those values in default.cfg ;)

Looks like that would need an update of default.cfg

Update default.cfg

source/network/StunClient.cpp
186

Yes, in my tests it usually worked with the first or second try, so after 10ms or 20ms.

Build failure - The Moirai have given mortals hearts that can endure.

builderr-debug-macos.txt
fatal error: malformed or corrupted AST file: 'could not find file '/Users/wfg/Jenkins/workspace/macos-differential/build/workspaces/gcc/../../../libraries/source/spidermonkey/include-unix-debug/mozilla/Compiler.h' referenced by AST file 'obj/network_Debug/precompiled.h.gch''
1 error generated.
make[1]: *** [obj/network_Debug/StunClient.o] Error 1
make: *** [network] Error 2

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7984/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/9060/display/redirect