{"id":4895,"date":"2012-05-21T12:24:05","date_gmt":"2012-05-21T17:24:05","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=4895"},"modified":"2012-05-21T17:07:04","modified_gmt":"2012-05-21T22:07:04","slug":"transatlantic-ping","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/05\/21\/transatlantic-ping\/","title":{"rendered":"Transatlantic Ping Faster Than Sending a Pixel to the Screen"},"content":{"rendered":"<p><a href=\"http:\/\/superuser.com\/questions\/419070\/transatlantic-ping-faster-than-sending-a-pixel-to-the-screen\/419167#419167\">John Carmack<\/a> (via <a href=\"http:\/\/5by5.tv\/hypercritical\/68\">John Siracusa<\/a>):<\/p>\n<blockquote cite=\"http:\/\/superuser.com\/questions\/419070\/transatlantic-ping-faster-than-sending-a-pixel-to-the-screen\/419167#419167\"><p>To measure display latency, I have a small program that sits in a spin loop polling a game controller, doing a clear to a different color and swapping buffers whenever a button is pressed. I video record showing both the game controller and the screen with a 240 fps camera, then count the number of frames between the button being pressed and the screen starting to show a change.<\/p><\/blockquote>\n<p>I think the lesson here is that intuition about performance bottlenecks is often wrong.<\/p>","protected":false},"excerpt":{"rendered":"<p>John Carmack (via John Siracusa): To measure display latency, I have a small program that sits in a spin loop polling a game controller, doing a clear to a different color and swapping buffers whenever a button is pressed. I video record showing both the game controller and the screen with a 240 fps camera, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-4895","post","type-post","status-publish","format-standard","hentry","category-technology"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=4895"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4895\/revisions"}],"predecessor-version":[{"id":4920,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4895\/revisions\/4920"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=4895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=4895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=4895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}