{"id":217,"date":"2021-07-30T12:25:41","date_gmt":"2021-07-30T16:25:41","guid":{"rendered":"https:\/\/www.artifexquake.com\/?page_id=217"},"modified":"2021-07-30T12:25:41","modified_gmt":"2021-07-30T16:25:41","slug":"lagometer","status":"publish","type":"page","link":"https:\/\/www.artifexquake.com\/?page_id=217","title":{"rendered":"Lagometer"},"content":{"rendered":"<div class=\"page-body\">\n<div class=\"main-box\">\n<div class=\"text-flow\">\n<p>The lagometer is a display of <a title=\"Latency (engineering)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Latency_(engineering)\" target=\"_blank\" rel=\"noopener\">network latency<\/a> on an Internet connection and of rendering by the client.<\/p>\n<p>It can be activated by opening the console and typing \/cg_lagometer 1<span style=\"color: #fafcff;\">.<\/span> or you can bind a key to show\/hide this graph with this script in your cfg:<\/p>\n<pre><code>set lag_on \"set CG_LAGOMETER 1; set tog_lag\r\nvstr lag_off\"\r\nset lag_off \"set CG_LAGOMETER 0; set tog_lag vstr lag_on\"\r\nset tog_lag vstr lag_on\r\nbind \"YOUR KEY HERE\" tog_lag  \r\n<\/code><\/pre>\n<p>There are two graphs in the lagometer, one above the other.<\/p>\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/www.esreality.com\/files\/placeimages\/2010\/75070-180px-Lagometer_spike.png\" alt=\"\" \/><\/p>\n<div class=\"text-flow\">\n<h3>Upper graph<\/h3>\n<p>The upper graph advances one pixel for every rendered frame on the client side. Blue lines below the baseline mean that the frame is interpolating between two valid snapshots. Yellow lines above the baseline mean the frame is extrapolating beyond the latest valid time. The length of the line is proportional to the time.<\/p>\n<p>Basically, blue is good: it&#8217;s based on two snapshots received from the server, so the frame will not be revoked. Yellow means that the client is predicting what will happen, but hasn&#8217;t received a snapshot to corroborate it yet. If the next snapshot comes in and doesn&#8217;t correspond to the prediction, the prediction is revoked and the client is update with the snapshot data. This results in the skipping you experience where you&#8217;ll end up somewhere very different from where you thought you were (and often with less health than you thought, because you were shot on the server, but the client couldn&#8217;t predict that happening for you).<\/p>\n<p>The upper graph indicates the consistency of your connection. Ideally, you should always have blue bars of only a pixel or two in height. If you are commonly getting big triangles of yellow on the graph, your connection is inconsistent.<\/p>\n<h3>Lower graph<\/h3>\n<p>The lower graph slides one pixel for every snapshot received (or not received) from the server. By default, snapshots come 20 times a second, so if you are running &gt;20 fps, the top graph will move faster, and vice versa. A red bar means the snapshot was dropped by the network (indicating packet loss). Green and yellow bars are properly received snapshots, with the height of the bar proportional to the ping. A yellow bar indicates that the previous snapshot was intentionally supressed to stay under the rate limit.<\/p>\n<p>In a heavy firefight, it is normal for modem players to see yellow bars in the bottom graph, which should return to green when the action quiets down. If you are getting several red bars visible, you may want to look for a server that drops less packets.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"page-body\">\n<div class=\"main-box\">\n<div class=\"text-flow\">\n<blockquote class=\"quote quote-block\"><p>&nbsp;<\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The lagometer is a display of network latency on an Internet connection and of rendering by the client. It can be activated by opening the console and typing \/cg_lagometer 1. or you can bind a key to show\/hide this graph with this script in your cfg: set lag_on &#8220;set CG_LAGOMETER 1; set tog_lag vstr lag_off&#8221; &hellip;<br \/><a href=\"https:\/\/www.artifexquake.com\/?page_id=217\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Lagometer<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-217","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=\/wp\/v2\/pages\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":0,"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=\/wp\/v2\/pages\/217\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.artifexquake.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}