Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Latency information #270

Open
iasoon opened this issue Sep 24, 2018 · 1 comment
Open

Latency information #270

iasoon opened this issue Sep 24, 2018 · 1 comment

Comments

@iasoon
Copy link
Member

iasoon commented Sep 24, 2018

A long long time ago, we talked about showing latency information in a lobby. Because we have reliable networking now and all packets get acked, we don't really have to do anything special to get latency information (just time how long it takes for us to receive an ack). The connection code could then keep track of this.

But then, how would we introduce this information to the lobby? We cannot read the value directly from the connection (the game code does not have access to that). In the current system, the only way would be to send an event to the lobby (and this is probably also the right way to do it). But how would we do this? Periodically send a 'network info' event? emit an event each time there is a significant change in ping? What would be the sensible (or wild and genius) thing to do?

@wschella
Copy link
Member

Periodically sending a Network Info / Heartbeat event seems POLA and simplest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants