Unity UI 优化最佳实践1 - Unity UI优化指导

优化由Unity UI驱动的用户界面是一门艺术。硬性规定很少;相反,每个情况都必须仔细评估系统的行为。优化Unity UI时的核心问题是平衡Draw calls和batching costs。尽管可以使用一些常识性的技术来减少其中一个,但复杂的UI必须进行权衡。

然而,正如其他地方的最佳做法一样,优化Unity UI的尝试应该从分析开始。尝试优化Unity UI系统之前的主要任务是找出观察到的性能问题的确切原因。 Unity UI的用户遇到四类常见的问题:

  • GPU片元着色器使用率过高(即填充率过度利用)
  • 用于重建Canvas批处理的CPU时间过长
  • Canvas批次重建数量过多(过度污染)
  • 用于生成顶点的CPU时间过长(通常来自文本)
    原则上可以创建一个Unity UI,其性能受到发送给GPU的draw calls数量的限制。然而,实际上,任何使用draw calls使GPU超载的项目更可能受到填充率过度利用的约束。

本指南将讨论Unity UI的基本概念,算法和代码以及讨论常见问题和解决方案。它分为五章:

  • The Fundamentals of Unity UI 章节定义特定于Unity UI的术语,并讨论许多用于呈现UI的基本过程的细节,包括构建批量几何图形。强烈建议读者从本章开始。
  • The Unity UI profiling tools章节讨论了使用开发人员可用的各种工具来收集分析数据。
  • The Fill-rate, Canvases and input章节讨论提高Unity UI的Canvas和Input组件性能的方法。
  • The UI controls章节讨论了UI文本,Scroll View和其他特定组件的优化,以及一些并非到处适用的技术。
  • The Other techniques and tips章节讨论了一些并非到处适用的问题,包括UI系统中“陷阱”的一些基本技巧和解决方法。

翻译自:https://unity3d.com/cn/learn/tutorials/topics/best-practices/guide-optimizing-unity-ui?playlist=30089

Pingbacks are open.

Trackback URL

Comments

54 Comments

  • breda administration
    28 May 2019, 17:34 | Reply
    Hi, for all time i used to check weblog posts here in the early hours in the break of day, as i love to learn more and more.
  • breda administration
    28 May 2019, 17:34 | Reply
    Hi, for all time i used to check weblog posts here in the early hours in the break of day, as i love to learn more and more.
  • gamefly free trial
    28 May 2019, 23:00 | Reply
    What's Going down i am new to this, I stumbled upon this I have discovered It positively useful and it has aided me out loads. I'm hoping to give a contribution & help different customers like its aided me. Good job.
  • gamefly free trial
    28 May 2019, 23:00 | Reply
    What's Going down i am new to this, I stumbled upon this I have discovered It positively useful and it has aided me out loads. I'm hoping to give a contribution & help different customers like its aided me. Good job.
  • how to get help in windows 10
    29 May 2019, 02:37 | Reply
    This post will assist the internet users for creating new website or even a weblog from start to end.
  • how to get help in windows 10
    29 May 2019, 02:37 | Reply
    This post will assist the internet users for creating new website or even a weblog from start to end.
  • situs judi capsa susun online terpercaya
    29 May 2019, 14:44 | Reply
    Hi tһеre, everything is going fine here aand ofcourѕe every one is shаring data, that's in fact fine, keep up writing. my site :: [situs judi capsa susun online terpercaya](http://www.Sanzuwu.com/home.php?mod=space&uid=153133&do=profile "situs judi capsa susun online terpercaya")
  • situs judi capsa susun online terpercaya
    29 May 2019, 14:45 | Reply
    Hi there, еverything iss going fine һerе and ofcoᥙrse every one is shaгing data, that's in fact fine, keep up ԝriting. Fеel fгеe to sᥙrf to mу homepage :: [situs judi capsa susun online terpercaya](http://www.Sanzuwu.com/home.php?mod=space&uid=153133&do=profile "situs judi capsa susun online terpercaya")
  • bandarq poker
    29 May 2019, 14:46 | Reply
    For lаtest information yߋu have to paʏ a quiⅽk visit world wide webb and on world-wide-web I found this website as a finest site for latest updates. My homepage
  • bandarq poker
    29 May 2019, 14:46 | Reply
    For lɑtest infߋrmation you have tߋ pay a quick visit world wide webb and on worⅼd-wide-web I found this website as a fineѕt site foor latest ᥙpdates. Alѕo visit my web blߋg ... [bandarq poker](http://www.tradeinzambia.com/advertise/user/profile/28531 "bandarq poker")
  • gamefly free trial
    29 May 2019, 20:31 | Reply
    Quality posts is the secret to be a focus for the viewers to pay a visit the website, that's what this website is providing.
  • gamefly free trial
    29 May 2019, 20:31 | Reply
    Quality posts is the secret to be a focus for the viewers to pay a visit the website, that's what this website is providing.
  • how to get help in windows 10
    30 May 2019, 12:23 | Reply
    Nice weblog here! Also your site a lot up very fast! What host are you using? Can I am getting your affiliate hyperlink on your host? I desire my website loaded up as fast as yours lol
  • how to get help in windows 10
    30 May 2019, 12:23 | Reply
    Nice weblog here! Also your site a lot up very fast! What host are you using? Can I am getting your affiliate hyperlink on your host? I desire my website loaded up as fast as yours lol
  • gamefly free trial
    31 May 2019, 02:57 | Reply
    Hi, always i used to check weblog posts here early in the daylight, as i like to learn more and more.
  • gamefly free trial
    31 May 2019, 02:57 | Reply
    Hi, always i used to check weblog posts here early in the daylight, as i like to learn more and more.
  • Sexy Ass Cams
    31 May 2019, 09:52 | Reply
    Spot on with this write-up, I truly feel this website needs a great deal more attention. I'll probably be returning to read through more, thanks for the info!
  • Sexy Ass Cams
    31 May 2019, 09:52 | Reply
    Spot on with this write-up, I truly feel this website needs a great deal more attention. I'll probably be returning to read through more, thanks for the info!
  • gamefly free trial
    01 Jun 2019, 02:19 | Reply
    Hey there! Do you know if they make any plugins to safeguard against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any tips?
  • gamefly free trial
    01 Jun 2019, 02:19 | Reply
    Hey there! Do you know if they make any plugins to safeguard against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any tips?
  • gamefly free trial
    01 Jun 2019, 10:06 | Reply
    Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Cheers
  • gamefly free trial
    01 Jun 2019, 10:06 | Reply
    Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Cheers
  • gamefly free trial
    02 Jun 2019, 02:43 | Reply
    hello there and thank you for your information – I've certainly picked up anything new from right here. I did however expertise some technical issues using this web site, since I experienced to reload the website lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my e-mail and could look out for much more of your respective intriguing content. Ensure that you update this again soon.
  • gamefly free trial
    02 Jun 2019, 02:43 | Reply
    hello there and thank you for your information – I've certainly picked up anything new from right here. I did however expertise some technical issues using this web site, since I experienced to reload the website lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my e-mail and could look out for much more of your respective intriguing content. Ensure that you update this again soon.
  • gamefly free trial
    02 Jun 2019, 20:49 | Reply
    This is a great tip especially to those fresh to the blogosphere. Brief but very accurate information… Thanks for sharing this one. A must read post!
  • gamefly free trial
    02 Jun 2019, 20:49 | Reply
    This is a great tip especially to those fresh to the blogosphere. Brief but very accurate information… Thanks for sharing this one. A must read post!
  • gamefly free trial
    03 Jun 2019, 06:26 | Reply
    Good article. I'm dealing with many of these issues as well..
  • poker online terbaik
    03 Jun 2019, 18:20 | Reply
    Ԝe absоlutely love your blog and find the majority of your post's to beе just what I'm looking for. can you odfer gսeѕt writers to write content to suit yyour needs? I ԝouldn't mind composing a post or elaЬorating on most of the subϳects you write with regards to here. Again, awesome weblog! my Ƅlog: [poker online terbaik](http://embreveaqui.indisciplinar.com/index.php?title=Regulator_perjudian_dan_balap_melepaskan_Lottoland_dua_lisensi_di_Afrika_Selatan "poker online terbaik")
  • gamefly free trial
    04 Jun 2019, 07:12 | Reply
    I'm really enjoying the design and layout of your site. It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Excellent work!
  • gamefly free trial
    04 Jun 2019, 07:12 | Reply
    I'm really enjoying the design and layout of your site. It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Excellent work!
  • gamefly free trial
    04 Jun 2019, 11:11 | Reply
    I am sure this article has touched all the internet users, its really really fastidious post on building up new weblog.
  • gamefly free trial
    04 Jun 2019, 11:11 | Reply
    I am sure this article has touched all the internet users, its really really fastidious post on building up new weblog.
  • gamefly free trial
    04 Jun 2019, 18:10 | Reply
    I'm not positive where you are getting your information, however great topic. I needs to spend some time learning more or figuring out more. Thanks for fantastic information I used to be looking for this information for my mission.
  • gamefly free trial
    04 Jun 2019, 18:11 | Reply
    I'm not positive where you are getting your information, however great topic. I needs to spend some time learning more or figuring out more. Thanks for fantastic information I used to be looking for this information for my mission.
  • Rosalina
    05 Jun 2019, 06:02 | Reply
    Verry nice post. I absolutely llve this website. Keep іt up! Feel free to surf too my weƅ blog ... sius judi online - [Rosalina](http://www2s.biglobe.ne.jp/nyoriko/cgi/g_book.cgi/g_book.cgi/ "Rosalina") -
  • Rosalina
    05 Jun 2019, 06:02 | Reply
    Very nice post. I aƅsolutely love this wеƅsіte. Keeep it up! Visit my webpаge - situs judi online - [Rosalina](http://www2s.biglobe.ne.jp/nyoriko/cgi/g_book.cgi/g_book.cgi/ "Rosalina") -
  • gamefly free trial
    05 Jun 2019, 13:01 | Reply
    There's certainly a lot to know about this subject. I like all of the points you made.
  • gamefly free trial
    05 Jun 2019, 13:01 | Reply
    There's certainly a lot to know about this subject. I like all of the points you made.
  • teacup puppies
    05 Jun 2019, 15:35 | Reply
    Hey! This is kind of off topic but I need some advice from an established blog. Is it very hard to set up your own blog? I'm not very techincal but I can figure things out pretty fast. I'm thinking about making my own but I'm not sure where to start. Do you have any ideas or suggestions? Appreciate it
  • teacup puppies
    05 Jun 2019, 15:35 | Reply
    Hey! This is kind of off topic but I need some advice from an established blog. Is it very hard to set up your own blog? I'm not very techincal but I can figure things out pretty fast. I'm thinking about making my own but I'm not sure where to start. Do you have any ideas or suggestions? Appreciate it
  • gamefly free trial
    05 Jun 2019, 16:25 | Reply
    Fantastic site you have here but I was curious if you knew of any forums that cover the same topics discussed in this article? I'd really like to be a part of community where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Appreciate it!
  • gamefly free trial
    05 Jun 2019, 16:25 | Reply
    Fantastic site you have here but I was curious if you knew of any forums that cover the same topics discussed in this article? I'd really like to be a part of community where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Appreciate it!
  • gamefly free trial
    06 Jun 2019, 00:06 | Reply
    I'm not sure exactly why but this web site is loading very slow for me. Is anyone else having this issue or is it a issue on my end? I'll check back later and see if the problem still exists.
  • gamefly free trial
    06 Jun 2019, 00:06 | Reply
    I'm not sure exactly why but this web site is loading very slow for me. Is anyone else having this issue or is it a issue on my end? I'll check back later and see if the problem still exists.
  • xt_blog
    06 Jun 2019, 15:51 | Reply
    Howdy this is sоmewhat of off topic but I was wanting to know if bⅼogs use WYSΙWYG editors оr if you have to manually code with HTML. І'm startfing a blog soon buut have no coding expertise so I wanted tto get advice from someone with experience. Any help would be greatⅼy appreciated! Visit my site [xt_blog](http://Juhlcameron25.Xtgem.com/__xt_blog/__xtblog_entry/13753420-pendapatan-kasino-rata-di-mississippi "xt_blog")
  • xt_blog
    06 Jun 2019, 15:51 | Reply
    Howⅾy this is somewhat of off topic but I wɑѕ wаnting to know if blogs use WYSIWYG editors օor if you have to manualⅼy code with HTML. I'm starting a blog soon but have nno coding expertikse so I wanteԀ to get aԁvicеe from someone with experience. Any help would be grеatly apρreciated! My website :: [xt_blog](http://Juhlcameron25.Xtgem.com/__xt_blog/__xtblog_entry/13753420-pendapatan-kasino-rata-di-mississippi "xt_blog")
  • gamefly free trial
    07 Jun 2019, 02:40 | Reply
    Really when someone doesn't understand afterward its up to other visitors that they will assist, so here it occurs.
  • gamefly free trial
    07 Jun 2019, 02:40 | Reply
    Really when someone doesn't understand afterward its up to other visitors that they will assist, so here it occurs.
  • gamefly free trial
    07 Jun 2019, 04:54 | Reply
    I relish, result in I found just what I was having a look for. You've ended my 4 day lengthy hunt! God Bless you man. Have a great day. Bye
  • gamefly free trial
    07 Jun 2019, 04:54 | Reply
    I relish, result in I found just what I was having a look for. You've ended my 4 day lengthy hunt! God Bless you man. Have a great day. Bye
  • Sabina
    08 Jun 2019, 02:56 | Reply
    Ι lіke the valuabgle іnformɑtion yoᥙ rovide on your articles. І'll bookmark yօuur blog andd check again right hwre regularly. I'm moderɑtely ceгtain I wil be informed a lot of new stuff riɡht right here! Ԍood luck foг the next! Stop bby myy web site
  • Sabina
    08 Jun 2019, 02:56 | Reply
    Ӏ lijke the vaⅼuabⅼe information you provide on your articles. I'll bookmark your blog and check again right here regularly. I'm moderately certain I will be informed a lot of new stuff right right here! Good lucxk for the next! Also visit my web page
  • rlfi=hd:
    15 Jun 2019, 11:33 | Reply
    Hi, Neat post. There is a problem together with your site in internet explorer, could check this? IE nonetheless is the market chief and a huge element of folks will pass over your excellent writing due to this problem.
  • rlfi=hd:
    15 Jun 2019, 11:33 | Reply
    Hi, Neat post. There is a problem together with your site in internet explorer, could check this? IE nonetheless is the market chief and a huge element of folks will pass over your excellent writing due to this problem.
Post your comment

cancel reply