[ENet-discuss] When is the ping stable ?

Uj ujdevil at gmail.com
Tue Jan 12 09:35:36 PST 2010


Thanks for all your answers !

I'll try to figure something out of roundTripTimeVariance,
else I'll probably implement a ping message.

Best regards,
Julien

On Mon, Jan 11, 2010 at 2:40 PM, Ruud van Gaal <ruud at racer.nl> wrote:

>  It never really is stable, but that's inherent to any network.
> What you need to do in your app is to build some filtering in the
> calculated ping time, so that it can't change too quickly. You just average
> out and skip seemingly very off values (spikes).
>
> Then also, everything you send out should be timestamped according to
> server time, and as clients can also know the ping time (from asking the
> server for example) you can relate server time to client time quite precise.
> Not even needed that the packet reception time is stable, as long as it
> arrives you can relate the packet times back to what it was on the server
> (every server-sent packet contains servertime, and you can deduce other
> times from that using the averaged out ping time).
>
> Ruud
>
>
>  ------------------------------
> *Van:* enet-discuss-bounces at cubik.org [mailto:
> enet-discuss-bounces at cubik.org] *Namens *Jay Sprenkle
> *Verzonden:* Monday, January 11, 2010 14:16
>
> *Aan:* Discussion of the ENet library
> *Onderwerp:* Re: [ENet-discuss] When is the ping stable ?
>
> I'm pretty sure ping can be effected by other traffic going through the
> network and other processes on the boxes so it might not ever be really
> stable.
>
> On Mon, Jan 11, 2010 at 4:15 AM, Uj <ujdevil at gmail.com> wrote:
>
>> Hi all,
>> I agree with Ruud :-)
>>
>> I changed the subject because another question came to my mind (and I dont
>> want to interfere with Jay's topic).
>> How do you guys know when the ping is "stable" ?
>>
>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20100112/8dd65d21/attachment.htm>


More information about the ENet-discuss mailing list