<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2>It never really is stable, but that's inherent to any 
network.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2>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).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2>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).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010><FONT face=Arial 
color=#0000ff size=2>Ruud</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=296063713-11012010></SPAN>&nbsp;</DIV><FONT 
face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=nl dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Van:</B> enet-discuss-bounces@cubik.org 
  [mailto:enet-discuss-bounces@cubik.org] <B>Namens </B>Jay 
  Sprenkle<BR><B>Verzonden:</B> Monday, January 11, 2010 14:16<BR><B>Aan:</B> 
  Discussion of the ENet library<BR><B>Onderwerp:</B> Re: [ENet-discuss] When is 
  the ping stable ?<BR></FONT><BR></DIV>
  <DIV></DIV>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.<BR><BR>
  <DIV class=gmail_quote>On Mon, Jan 11, 2010 at 4:15 AM, Uj <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:ujdevil@gmail.com">ujdevil@gmail.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi 
    all,<BR>I agree with Ruud :-)<BR><BR>I changed the subject because another 
    question came to my mind (and I dont want to interfere with Jay's 
    topic).<BR>How do you guys know when the ping is "stable" 
  ?<BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>