- 1、本文档共4页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
0600优化图形性能
Unity Manual Advanced Optimizing Graphics Performance
Unity手册-高级-优化图形性能
Optimizing Graphics Performance 优化图形性能
Making your game run smoothly is of prime importance to its success. Thankfully Unity is there for you! We have spent a lot of time and energy making it run fast on a wide variety of hardware. Below are some simple guidelines to maximizing the speed of your game.
使你的游戏顺利运行是最重要的成功。值得庆幸的Unity为你准备了!我们花了很多时间和精力使它在多种硬件快速运行。以下是最大限度地发挥你的游戏速度的一些简单的指导方针。
In summary - combine, combine, combine 总的来说-组合,组合,组合
If you care about performance, combine meshes. 如果你关心性能,结合网格。
If you care about performance, make sure all your combined meshes also share the same material and texture. 如果你关心性能,请确保你所有的组合网格也有同样的材料和纹理。
Profiler and Rendering Statistics window are very helpful!
分析器和渲染统计窗口是非常有帮助!
In detail: 详细
Modern graphics cards are really good at pushing a lot of polygons, but they have quite a bit of overhead for every batch that you submit to the graphics card. So if you have a 100-triangle object it is going to be just as expensive to render as a 1500-triangle object. The sweet spot for optimal rendering performance is somewhere around 1500-4000 triangles per mesh.
现代显卡擅长推动很多的多边形,但他们仍有很多开销为每一批你提交的显卡。因此,如果你有一个100三角形对象它将是一样昂贵去作为1500三角形对象渲染。达到最佳的渲染性能是每网格1500-4000三角形。
You only pay a rendering cost for objects that have a Mesh Renderer attached. And you only pay for those that are within the view frustum. There is no rendering cost from having a lot of empty GameObjects in your scene.
你只需为对象给予一个网格渲染器附加的一个渲染。你只需给予对那些视域范围内的。目前没有渲染的费用为许多空白GameObjects在你的场景里。
The best way to improve rendering performance is to combine objects together so each mesh has around 1500 or more triangles and uses only one Material for the entire mesh.
最好的办法提高渲染性能是结合在一起的对象,因此每个网格拥有大约1500或更多的三角形,并使用只有一个材质为整个网格。
It is important to understand that just combining two objects which dont share a material does not give you any performance increase at all. If you want to combine effectively, you need to make s
文档评论(0)