{"id":222485,"date":"2021-07-18T09:00:15","date_gmt":"2021-07-18T01:00:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=222485"},"modified":"2021-07-14T17:28:35","modified_gmt":"2021-07-14T09:28:35","slug":"windows-terminal-wt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/windows-terminal-wt.html","title":{"rendered":"Windows Terminal \u6027\u80fd\u7684 issue\u518d\u60f9\u4e89\u8bae\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6e38\u620f\u5f15\u64ce\u5f00\u53d1\u8005\u548c Handmade Hero \u9879\u76ee\u7684\u4f5c\u8005 Casey Muratori \u5728 Windows Terminal(\u4ee5\u4e0b\u7b80\u79f0\u4e3a WT)\u7684 GitHub \u4ed3\u5e93\u4e2d\u53d1\u5e03\u4e86\u4e00\u4e2a\u5173\u4e8e WT \u6027\u80fd\u7684 issue(Extremely slow performance when processing virtual terminal sequences)\uff0c\u5f15\u53d1\u4e86\u6fc0\u70c8\u7684\u8ba8\u8bba\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

Casey Muratori \u5728 issue \u4e2d\u6307\u51fa\uff0cWT \u5728\u6e32\u67d3\u5f69\u8272\u5b57\u7b26\u65f6\u6bd4\u5355\u8272\u5b57\u7b26\u6162\u7ea6 40 \u500d\uff0c\u5e76\u9644\u4e0a\u4e86\u7528\u6765\u6d4b\u8bd5\u7684 benchmark \u7a0b\u5e8f TermBench\u3002\u4e4b\u540e Casey Muratori \u4e0e WT \u7684\u6210\u5458\u5728 issue \u4e0b\u5c55\u5f00\u4e86\u8ba8\u8bba\uff0c\u7136\u800c\u5e76\u6ca1\u6709\u5f97\u51fa\u7edf\u4e00\u610f\u89c1\uff0cCasey Muratori \u88ab\u8ba4\u4e3a \u201c\u628a\u4e00\u4e2a\u53ef\u4ee5\u4f5c\u4e3a\u535a\u58eb\u7814\u7a76\u9879\u76ee\u7684\u95ee\u9898\u770b\u5f97\u8fc7\u4e8e\u7b80\u5355\u201d\uff0c\u5e76\u4e14\u8be5 issue \u968f\u540e\u88ab\u5173\u95ed\u3002<\/p>\n

\u6b64\u540e\uff0cCasey Muratori \u76f4\u63a5\u5728\u5176 Handmade Hero \u9891\u9053\u4e2d\u53d1\u5e03\u4e86\u4e00\u4e2a\u540d\u4e3a \u201cHow fast should an unoptimized terminal run?\u201d \u7684\u89c6\u9891\uff0c\u89c6\u9891\u4e2d\u7ed9\u51fa\u4e86\u76f8\u5e94\u7684\u53c2\u8003\u5b9e\u73b0 RefTerm \u4f5c\u4e3a\u5bf9\u6bd4\uff0c\u5e76\u8be6\u7ec6\u63cf\u8ff0 WT \u7684\u6027\u80fd\u95ee\u9898\u3002\u8be5 RefTerm \u652f\u6301\u56de\u6eda\u3001\u6362\u884c\u3001Unicode\u7ec4\u5408\u3001RTL-over-LTR\u3001\u591a\u8272\u5b57\u4f53\u3001\u5b9e\u65f6\u6539\u53d8\u5b57\u4f53\uff0c\u6e32\u67d3\u901f\u5ea6\u8fbe\u51e0\u5343 FPS\u3002<\/p>\n

\u4e0d\u8fc7\uff0c\u4e5f\u6709\u5f00\u53d1\u8005\u5bf9 Casey Muratori \u5728\u89c6\u9891\u4e2d\u5b9e\u73b0\u7684 RefTerm \u63d0\u51fa\u4e86\u8d28\u7591\uff0c\u5176\u770b\u6cd5\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n

\u6784\u5efa\u65f6\u4f7f\u7528 \/GS- \/Gs999999set \u547d\u4ee4\u884c\u53c2\u6570\uff0c\u8fd9\u4f1a\u7981\u7528\u5b89\u5168\u529f\u80fd\u5e76\u4e14\u5f71\u54cd\u6027\u80fd\uff0c\u800c\u7ec8\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u5de5\u4f5c\u662f\u89e3\u6790\u4e0d\u53d7\u4fe1\u4efb\u7684\u8f93\u5165\u3002<\/p>\n

\u8be5\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528 0.5% \u7684 CPU \u548c\u9ad8\u8fbe 14% \u7684 GPU \u6765\u663e\u793a\u95ea\u70c1\u7684\u5149\u6807\uff0c\u8fd9\u5e76\u4e0d\u9ad8\u6548\u3002\u5e76\u4e14 RefTerm \u5e94\u7528\u7a0b\u5e8f\u5728\u7a7a\u95f2\u65f6\u4f7f\u7528 351 MB \u5185\u5b58(\u4f7f\u7528 4k \u663e\u793a\u5668\u8fd0\u884c)\uff0c\u800c\u7ec8\u7aef\u53ef\u63a5\u53d7\u7684\u5185\u5b58\u4f7f\u7528\u91cf\u7ea6\u4e3a 10-20 MB\u3002<\/p>\n

\"\"<\/p>\n

\u53ef\u9760\u6027\u4e0d\u8db3\u3002\u7ec8\u7aef\u662f\u4e00\u4e2a\u9ad8\u98ce\u9669\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u5b83\u5fc5\u987b\u89e3\u6790\u5927\u91cf\u4e0d\u53d7\u4fe1\u4efb\u7684\u6587\u672c\uff0c\u800c\u5728 RefTerm \u4e2d\u8fd0\u884c splat refterm_debug_msvc.pdb \u4f1a\u5bfc\u81f4 RefTerm \u7acb\u5373\u51bb\u7ed3\u5e76\u5360\u7528 100% \u7684 CPU\u3002\u5e94\u7528\u7a0b\u5e8f\u7a97\u53e3\u65e0\u6cd5\u5173\u95ed\uff0c\u53ea\u80fd\u901a\u8fc7\u4efb\u52a1\u7ba1\u7406\u5668\u6740\u6b7b\u3002<\/p>\n

\u76ee\u524d\uff0c\u4e00\u4e2a\u8be5 issue \u7684\u514b\u9686\u5df2\u7ecf\u53d1\u5e03(\u539f issue \u5df2\u5173\u95ed)\uff0c\u5e76\u4e14\u540c\u65f6\u6253\u5f00\u4e86\u4e00\u4e2a\u6dfb\u52a0\u57fa\u4e8e\u5b57\u5f62\u56fe\u96c6\u7684 DxRenderer \u7684 issue\uff0c\u611f\u5174\u8da3\u8005\u53ef\u4ee5\u524d\u5f80\u4e86\u89e3\u6700\u65b0\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Casey Muratori \u5728 issue \u4e2d\u6307\u51fa\uff0cWT \u5728\u6e32\u67d3\u5f69\u8272\u5b57\u7b26\u65f6\u6bd4\u5355\u8272\u5b57\u7b26\u6162\u7ea6 40 \u500d\uff0c\u5e76\u9644\u4e0a\u4e86 […]<\/p>\n","protected":false},"author":323,"featured_media":222490,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-222485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=222485"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222485\/revisions"}],"predecessor-version":[{"id":222535,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222485\/revisions\/222535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/222490"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=222485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=222485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=222485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}