Go back to previous topic
Forum Name Gameplay
Topic subjectminor latency spikes
Topic URLhttps://forums.carrionfields.com/dcboard.php?az=show_topic&forum=6&topic_id=64260
64260, minor latency spikes
Posted by Isildur on Wed 31-Dec-69 07:00 PM
I rolled up a character and noticed some jitter that doesn't seem related to my network connection. I'm posting this tintin++ script again in case it might help diagnose.

Maybe connect directly from the VM that hosts CF in order to eliminate link quality as a factor. I'm curious to know what stats you see. This is from a run I did today from a location with consistent 50ms ping to CF:

min: 103 ms, max: 526 ms, avg: 255 ms, med: 266 ms, count: 258

Here's the script:
#ali {cfping} {#act {You nod.} {#format {endtime} {%U};#math {duration} {$endtime - $starttime};#math {duration} {$duration / 1000};#showme {duration: $duration};#list {times} {add} {$duration};#format {starttime} {%U};nod};#ali {off} {#unact {You nod.};#unali {off};#unvar {starttime};#unvar {endtime};#unvar {duration};#var {min} {9999};#var {max} {0};#var {avg} {0};#list {times} {size} {size};#math {halfsize} {$size / 2};#forall {$times<%*>} {#if {&0 < $min} {#var {min} {&0}};#if {&0 > $max} {#var {max} {&0}};#math {avg} {$avg + &0}};#list {times} {sort};#math {avg} {$avg / $size};#math {med} {$times<$halfsize>};#showme {min: $min ms,  max: $max ms,  avg: $avg ms,  med: $med ms,  count: $size}#unvar {min};#unvar {max};#unvar {avg};#unvar {med};#unvar {size};#unvar {halfsize};#unvar {times}};#unvar {times};#format {starttime} {%U};nod}
Put that in then run "cfping" to start it and "off" to stop it. It just sends the "nod" command repeatedly and records the time between when each command was sent and when it receives the text: "You nod."
64265, could it be your own OS lagging?
Posted by Dallevian on Wed 31-Dec-69 07:00 PM
i have a #beep command which always slows down my zmud when it fires the sound.
64262, RE: minor latency spikes
Posted by Umiron on Wed 31-Dec-69 07:00 PM
When I run it, avg and med always come back as zero.

Using tintin++ 2.01.0. I don't have time to debug the client script right now.
64266, RE: minor latency spikes
Posted by Isildur on Wed 31-Dec-69 07:00 PM
Forum software is mangling the script because it contains brackets. Will try to figure out how to escape them.
64267, Pastebin. (nt)
Posted by Umiron on Wed 31-Dec-69 07:00 PM
asd
64268, RE: minor latency spikes
Posted by Isildur on Wed 31-Dec-69 07:00 PM
Try this:
#ali {cfping} {#act {You nod.} {#format {endtime} {%U};#math {duration} {$endtime - $starttime};#math {duration} {$duration / 1000};#showme {duration: $duration};#list {times} {add} {$duration};#format {starttime} {%U};nod};#ali {off} {#unact {You nod.};#unali {off};#unvar {starttime};#unvar {endtime};#unvar {duration};#var {min} {9999};#var {max} {0};#var {avg} {0};#list {times} {size} {size};#math {halfsize} {$size / 2};#forall {$times<%*>} {#if {&0 < $min} {#var {min} {&0}};#if {&0 > $max} {#var {max} {&0}};#math {avg} {$avg + &0}};#list {times} {sort};#math {avg} {$avg / $size};#math {med} {$times<$halfsize>};#showme {min: $min ms,  max: $max ms,  avg: $avg ms,  med: $med ms,  count: $size}#unvar {min};#unvar {max};#unvar {avg};#unvar {med};#unvar {size};#unvar {halfsize};#unvar {times}};#unvar {times};#format {starttime} {%U};nod}
64269, Nope. Feel free to email it. (nt)
Posted by Umiron on Wed 31-Dec-69 07:00 PM
asd
64272, RE: Nope. Feel free to email it. (nt)
Posted by Isildur on Wed 31-Dec-69 07:00 PM
Emailed.