Sample project for Steam-based networking for GameMaker. · By YellowAfterlife
Hello! Looking at the menu in the example, is there any way to show the current latency next to the name of the creator of the lobby?
The only way is to establish a temporary connection with each lobby owner (you can add an extra function to the DLL or just steam_lobby_set_data it so that you can retrieve it later) and exchange a few packets to figure out the latency.
Ooh I understand, I wouldn't mind showing the ping once inside the lobby, I think it would be better that way.. so for doing inside the lobby i need to use "steam_lobby_set_data" right?
The example already bounces "ping" packets back and forth, but you'll need to measure time since the last one to calculate the actual latency.