{"id":3215,"date":"2023-10-17T18:50:21","date_gmt":"2023-10-17T10:50:21","guid":{"rendered":"https:\/\/www.caiqinyi.cn\/?p=3215"},"modified":"2023-10-17T18:50:40","modified_gmt":"2023-10-17T10:50:40","slug":"technology_sharing_20231016","status":"publish","type":"post","link":"https:\/\/www.caiqinyi.cn\/index.php\/2023\/10\/17\/technology_sharing_20231016\/","title":{"rendered":"\u5468\u4f1a\u6280\u672f\u5206\u4eab[20231016\u671f]"},"content":{"rendered":"<p><script type=\"text\/javascript\" async src=\"https:\/\/www.caiqinyi.cn\/wp-content\/MathJax\/MathJax.js?config=TeX-AMS_CHTML\">\n<\/script><br \/>\n<script type=\"text\/x-mathjax-config\">\n    MathJax.Hub.Config({\n        tex2jax: {inlineMath: [['$','$']]},\n        TeX: {equationNumbers: {autoNumber: [\"AMS\"], useLabelIds: true}},\n        \"HTML-CSS\": {linebreaks: {automatic: true}},\n        SVG: {linebreaks: {automatic: true}}\n    });\n<\/script><\/p>\n<p><strong>\u4e3b\u9898:<\/strong> GDC2023\uff1aGrappling with Performance: Rendering Optimization Strategies in &#8216;Rumbleverse&#8217;<\/p>\n<p><strong>\u7b80\u4ecb:<\/strong> Rumbleverse is a 40-player battle royale game built in Unreal Engine 4but using a general-purpose engine doesn&#8217;t stop Iron Galaxy Studios from making engine-level optimizations to push the game to look the best it can be, while running at 60 FPS across console generations. Jon Moore, the game&#8217;s lead rendering engineer, will share many optimizations made throughout the game&#8217;s development and how optimization opportunities arise when leveraging a specific game&#8217;s constraints. Ultimately, choice of engine doesn&#8217;t affect optimization potential.<\/p>\n<p><!--more--><\/p>\n<p><strong>\u6750\u6599\/\u94fe\u63a5:<\/strong> <a href=\"https:\/\/www.gdcvault.com\/play\/1029151\/Grappling-with-Performance-Rendering-Optimization\">Grappling with Performance: Rendering Optimization Strategies in &#8216;Rumbleverse&#8217;<\/a><\/p>\n<p><strong>\u5b66\u4e60\u8bb0\u5f55:<\/strong> \u8fd9\u662f\u4e00\u4e2a\u4ecb\u7ecdUE4\u4e0a\u7684\u4f18\u5316\u7ecf\u9a8c\u7684\u5206\u4eab. \u7531\u4e8e\u6211\u4eec\u5e76\u672a\u5145\u5206\u5229\u7528\u5230UE5\u7684\u65b0\u7279\u6027(Nanite\u4e0eLumen\u7b49), \u6240\u4ee5\u5176\u4f18\u5316\u65b9\u6cd5\u8fd8\u662f\u6709\u4e0d\u5c11\u503c\u5f97\u501f\u9274\u7684\u5730\u65b9~<br \/>\n$\\\\$ <strong>1. \u53cd\u5c04, \u6b21\u8868\u9762\u6563\u5c04\u4e0eWater Mesh<\/strong><br \/>\n$\\\\$ 1) \u8fd9\u4e00\u90e8\u5206\u5176\u5b9e\u770b\u5f97\u4e0d\u591a, \u56e0\u4e3a\u4e3b\u8981\u662f\u5728\u4ecb\u7ecd\u5728TBR\u4e0a\u7684\u4f18\u5316, \u7531\u4e8e\u6211\u4eec\u76ee\u524d\u5e76\u6ca1\u6709\u79fb\u52a8\u7aef\u4e0a\u7684\u4f18\u5316\u9700\u6c42, \u6545\u5148\u6682\u65f6\u8df3\u8fc7\u4e86\u8fd9\u4e00\u90e8\u5206.<br \/>\n$\\\\$ <strong>2. \u89d2\u8272\u63cf\u8fb9<\/strong><br \/>\n$\\\\$ 1) \u91c7\u7528Custom Depth + \u540e\u5904\u7406\u6750\u8d28\u7684\u65b9\u5f0f\u6027\u80fd\u6d88\u8017\u8f83\u5927.<br \/>\n$\\\\$ 2) \u5bf9\u5f15\u64ce\u505a\u4e00\u4e9b\u5c0f\u7684\u6539\u52a8, \u4f7f\u5f97\u80fd\u4eceBase Pass\u4e2d\u5f97\u5230\u89d2\u8272\u7684Stencil\u503c, \u4ece\u800c\u907f\u514d\u65e0\u5173\u7684pixel\u7ed8\u5236\u6d88\u8017.<br \/>\n$\\\\$ <strong>3. \u534a\u900f\u660e\u5149\u7167<\/strong><br \/>\n$\\\\$ 1) \u5f53\u573a\u666f\u4e2d\u5b58\u5728\u5927\u91cf\u80fd\u591f\u6295\u5c04\u534a\u900f\u660e\u9634\u5f71\u7684\u5149\u6e90\u65f6, \u5bf9\u6027\u80fd\u7684\u538b\u529b\u662f\u975e\u5e38\u5927\u7684.<br \/>\n$\\\\$ 2) \u5f53\u7f8e\u672f\u540c\u5b66\u5bf9\u8fd9\u65b9\u9762\u7684\u5149\u7167\u6548\u679c\u6ca1\u6709\u9700\u6c42\u65f6, \u5e94\u5c3d\u53ef\u80fd\u5730\u5173\u6389\u6295\u5c04\u534a\u900f\u660e\u9634\u5f71\u7684\u529f\u80fd.<br \/>\n$\\\\$ <strong>4. \u7c92\u5b50\u5149\u7167\u8d34\u56fe<\/strong><br \/>\n$\\\\$ 1) \u5c06\u7c92\u5b50\u7684\u5149\u7167\u7ed3\u679c\u96c6\u4e2d\u5230\u4e00\u5f20Atlas\u4e0a\u8fdb\u884c\u91c7\u6837, \u4e14\u7f8e\u672f\u540c\u5b66\u53ef\u4ee5\u63a7\u5236\u7c92\u5b50\u7528\u4e8e\u5149\u7167\u8ba1\u7b97\u7684LOD.<br \/>\n$\\\\$ <strong>5. Mesh\u5149\u7167<\/strong><br \/>\n$\\\\$ 1) \u8fd9\u4e00\u5c0f\u8282\u7684\u6807\u9898\u867d\u7136\u770b\u8d77\u6765\u4e0eMesh\u76f8\u5173, \u5b9e\u5219\u8fd8\u662f\u5728\u4ecb\u7ecd\u7c92\u5b50\u76f8\u5173\u7684\u4f18\u5316. \u6b64\u5904\u662f\u628a\u7c92\u5b50\u76f8\u5173\u7684\u6750\u8d28\u7684Lighting Mode\u6539\u4e3aPerVertex NonDirectional ForwardShading, \u964d\u4f4e\u7c92\u5b50\u7684PS\u7684\u6027\u80fd\u538b\u529b.<br \/>\n$\\\\$ <strong>6. Distance Field<\/strong><br \/>\n$\\\\$ 1) \u76ee\u524d\u6211\u4eec\u4e5f\u78b0\u5230\u4e86Distance Field\u76f8\u5173\u7684\u6027\u80fd\u74f6\u9888, \u4e0d\u8fc7\u4e3b\u8981\u662f\u53d1\u751f\u5728Buffer Pool\u7684\u5206\u914d\u4e0a, \u6b64\u5904\u662f\u4f18\u5316\u4e86Distance Field\u5bf9\u5e94\u7684Tree Node\u7684\u641c\u7d22\u903b\u8f91, \u5c06\u539f\u672c\u7684\u65f6\u95f4\u590d\u6742\u5ea6O(N)\u964d\u81f3O(log N), \u503c\u5f97\u4e00\u8bd5\u7684\u4e00\u4e2a\u4f18\u5316.<br \/>\n$\\\\$ <strong>7. \u8fc7\u591a\u7684\u9762\u6570<\/strong><br \/>\n$\\\\$ 1) \u7c7b\u4f3c\u5730, \u76ee\u524d\u6211\u4eec\u4e5f\u78b0\u5230\u4e86\u9762\u6570\u76f8\u5173\u7684\u6027\u80fd\u74f6\u9888, \u5f53\u573a\u666f\u9762\u6570\u592a\u591a\u65f6, \u4f1a\u76f4\u63a5\u5f71\u54cd\u5230\u5254\u9664\u7684\u6548\u7387\u4e0eGPU\u7684\u6027\u80fd.<br \/>\n$\\\\$ 2) \u6b64\u5904\u5927\u7bc7\u5e45\u4ecb\u7ecd\u4e86\u5229\u7528ISM\u5408\u5e76\u5c0f\u7269\u4ef6\u7684\u6d41\u7a0b, \u8fd9\u4e5f\u662f\u6211\u4eec\u540e\u9762\u9700\u8981\u63a8\u7684\u4e00\u4e2a\u6d41\u7a0b, \u4f46\u5982\u4f55\u81ea\u52a8\u5316\u5730\u4e14\u5728\u4e0d\u589e\u52a0\u7f8e\u672f\u540c\u5b66\u8d1f\u62c5\u7684\u524d\u63d0\u4e0b\u6784\u5efaISM, \u4e3b\u8bb2\u4eba\u5e76\u6ca1\u6709\u4ecb\u7ecd\u5f97\u7279\u522b\u6e05\u695a, \u9700\u8981\u8fdb\u4e00\u6b65\u6478\u7d22.<br \/>\n$\\\\$ <strong>8. \u8d34\u82b1<\/strong><br \/>\n$\\\\$ 1) \u7531\u4e8e\u8d34\u82b1\u4f7f\u7528\u7684Texture\u603b\u662f\u4ee5\u6700\u7cbe\u7ec6\u7684Mip\u8fdb\u884c\u6d41\u9001, \u6545\u5f53\u573a\u666f\u5185\u5b58\u5728\u5927\u91cf\u8d34\u82b1\u65f6, \u4f1a\u6781\u5927\u5730\u5360\u7528\u7eb9\u7406\u7684\u6d41\u9001\u6c60, \u5bfc\u81f4\u4e0d\u65ad\u5730\u53d1\u751f\u7eb9\u7406\u6d41\u9001.<br \/>\n$\\\\$ 2) \u9700\u8981\u6839\u636e\u8d34\u82b1\u4e0e\u76f8\u673a\u7684\u8ddd\u79bb, \u8ba1\u7b97\u8d34\u82b1\u7684Texture\u4f7f\u7528\u7684Mip.<br \/>\n$\\\\$ 3) \u5bf9\u8d34\u82b1\u5e76\u884c\u6267\u884c\u89c6\u9525\u4f53\u5254\u9664.<br \/>\n$\\\\$ 4) \u4e0a\u8ff0\u65b9\u6cd5\u90fd\u662f\u503c\u5f97\u5c1d\u8bd5\u7684\u4f18\u5316\u65b9\u6cd5.<\/p>\n<p><strong>\u8ba8\u8bba\u8bb0\u5f55:<\/strong><br \/>\n$\\\\$ <strong>Q:<\/strong> Rumbleverse\u56e2\u961f\u662f\u5426\u4f7f\u7528\u4e86GPU Driven\u7684\u7ba1\u7ebf?<br \/>\n$\\\\$ <strong>A:<\/strong> \u5e94\u8be5\u662f\u6ca1\u6709. UE4\u7684GPU Driven\u7684\u7ba1\u7ebf\u8fd8\u4e0d\u591f\u6210\u719f, \u8981\u60f3\u771f\u6b63\u4f7f\u7528\u8d77\u6765, \u8fd8\u9700\u8981\u9b54\u6539\u4e0d\u5c11\u5f15\u64ce\u7684\u6e90\u7801, Rumbleverse\u56e2\u961f\u4f18\u5316\u7684\u521d\u8877\u4fbf\u662f\u80fd\u591f\u5728\u5c11\u6539\u5f15\u64ce\u7684\u60c5\u51b5\u4e0b\u5f97\u5230\u6027\u80fd\u4e0a\u7684\u4f18\u5316.<br \/>\n$\\\\$ <strong>Q:<\/strong> \u5728\u6709\u4e86Mesh Batch\u7684\u673a\u5236\u4e0b, \u4e3a\u4ec0\u4e48\u8fd8\u8981\u4f7f\u7528ISM?<br \/>\n$\\\\$ <strong>A:<\/strong> \u4e24\u8005\u5206\u5de5\u4e0d\u540c, ISM\u662f\u9759\u6001\u5408\u6279, \u4e14\u80fd\u5408\u6279\u7684Mesh\u8303\u56f4\u66f4\u5927, \u9650\u5236\u66f4\u5c0f, \u540c\u65f6\u80fd\u591f\u6709\u6548\u5730\u964d\u4f4e\u53d1\u8d77\u906e\u6321\u5254\u9664\u7684Draw Call.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u9898: GDC2023\uff1aGrappling with Performance: Rendering Optim &hellip; <a href=\"https:\/\/www.caiqinyi.cn\/index.php\/2023\/10\/17\/technology_sharing_20231016\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5468\u4f1a\u6280\u672f\u5206\u4eab[20231016\u671f]<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/3215"}],"collection":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3215"}],"version-history":[{"count":3,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/3215\/revisions"}],"predecessor-version":[{"id":3222,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/3215\/revisions\/3222"}],"wp:attachment":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}