[ENet-discuss] peer->roundTripTime

Lee Salzman lsalzman1 at cox.net
Wed Dec 27 08:37:16 PST 2006


Remember, ENet does pretty much all work in enet_host_service(). So if 
you aren't constantly servicing the host, then the frequency at which 
you call it is going to have a small effect on RTTs. It's never been a 
big deal in so far as what ENet's designed for.

Lee

intripoon wrote:
> Hi !
> 
> I wonder about the peer->roundTripTime value. Between every pc in my local
> network, all peers have a roundTripTime of 7 to each other, no matter what I
> do. Shouldn't that be value be smaller? Even on one pc having two processes
> connecting to each other by enet peers, that value is 7. I also tried
> sending a high performance counter value from one process to the other to
> check if it really takes 3.5 ms to send a packet - but it doesn't.
> 
> Somewhere I read, the rtt value is computed by comparing the time of a
> reliably sent packet and it's returning ack packet. Do maybe ack packets get
> delayed for some reason? Maybe waiting for more possible ack packets to be
> sent? Maybe something like that explains the 7 ms?
> 
> Is there a way to configure enet to return a more correct value in this
> case?
> 
> I'm not quite sure which version of enet I'm using. Is there a version
> string somewhere? It's not too old though.
> 
> Best regards
> 	Marc
> 
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
> 



More information about the ENet-discuss mailing list