荣耀彩票代理

  • 热门专题

Unity性能优化(4)官方教程Optimizing graphics rendering in Unity games翻译

作者:Alan777w  发布日期:2016-12-22 20:36:26
  • BENWENSHIUnityGUANFANGJIAOCHENG,XINGNENGYOUHUAXILIEDEDISIPIAN《Optimizing graphics rendering in Unity games》DEFANYI。

     

    简介

    BENWENWOMENJIANGHUIXUEXIZAIUnityXUANRANYIZHENDEMUHOUHUIFASHENGSHENME,XUANRANSHIHUIFASHENGNAZHONGLEIXINGDEXINGNENGWENTI,YIJIZENYANGQUJIEJUEHEXUANRANXIANGGUANDEXINGNENGWENTI。

    荣耀彩票代理YUEDUBENWENZHIQIAN,LIJIEMEIYOUYIDAOQIEDEFANGFAQUGAIJINXUANRANXINGNENGWENTISHIZHIGUANZHONGYAODE。XUANRANXINGNENGBEIWOMENYOUXIZHONGDEHENDUOYINSUYINGXIANGBINGQIEGAODUYILAIWOMENYOUXIYUNXINGDEYINGJIANHECAOZUOXITONG。ZUIZHONGYAODESHIWOMENTONGGUODIAOCHA,SHIYAN,YIJIJINGQUEFENXIXINGNENGJIANCEDEJIEGUOLAIJIEJUEXINGNENGWENTI。

    BENWENBAOKUOLEYIXIEZUICHANGJIANDEXUANRANXINGNENGWENTIDEXINXI,YIJIJIEJUEFANGFAHEYIXIEKUOZHANYUEDUZIYUANDELIANJIE。HENKENENGWOMENDEYOUXIYOUYIXIEWENTIBENWENMEIYOUFUGAI。JINGUANRUCI,BENWENRENGRANHUIBANGZHUWOMENLIJIEWOMENDEWENTI,JIWOMENYIXIEJICHUZHISHISHIDEWOMENGENGYOUXIAODEQUCHAZHAOJIEJUEFANGAN。

    渲染的简要介绍

    荣耀彩票代理KAISHIZHIQIAN,WOMENKUAISUJIANYAODEKANKANUnityXUANRANYIZHENSHIFASHENGLESHENME。LIJIESHIJIANLIUHESHIQINGFASHENGDEZHENGQUESHIQIJIANGHUIBANGZHUWOMENLIJIE,YANJIU,BINGQIENULIJIEJUEWOMENDEXINGNENGWENTI。

    BEIZHU:ZAIBENWENZHONG,WOMENJIANGSHIYONG“object”,ZHIDAIWOMENYOUXIZHONGBEIXUANRANDEDUIXIANG。RENHEDAIZHEXUANRANZUJIANDEGameObjectDOUJIANGCHENGZUOobject。

    JIBENSHANG,XUANRANLIUCHENGRUXIA:

    荣耀彩票代理-CPUJISUANCHUSHENMEDONGXIXUYAOBEIHUIZHI,BINGQIEZENMEBEIHUIZHI。

    荣耀彩票代理-CPUJIGPUFASONGZHILING。

    -GPUGENJUCPUDEZHILINGJINXINGHUIZHI。

    XIANZAIRANGWOMENJINYIBUKANKANFASHENGLESHENME。ZAIBENWENDEHOUMIAN,WOMENJIANGFUGAISHANGMIANMEIGEBUZHOUDEXIJIE。DANSHIXIANZAI,WOMENXIANSHUXIYIXIEJIANGHUISHIYONGDEMINGCI,YIJILIJIEZAIXUANRANZHONGCPUHEGPUSUOBANYANDEBUTONGJIAOSE。

    XUANRANDEGUOCHENGTONGCHANGBEICHENGWEIXUANRANGUANXIAN,ZHEISHIFENYOUZHUYUJIYI。GAOXIAODEXUANRANZAIYUBAOCHIXINXILIUDONG。

    ZAIXUANRANMEIYIZHENDESHIHOU,CPUDOUHUIZUORUXIAGONGZUO:

    -CPUJIANCHAPINGMUSHANGDEMEIGEobject,JUEDINGTAMENSHIFOUYINGGAIBEIXUANRAN。YIGEobjectZHIYOUMANZULEYIDINGDETIAOJIANCAIHUIBEIXUANRAN。LIRU,TADEYIBUFENPENGZHUANGHEBIXUYAOZAISHEXIANGJIDESHIZHUITINEI。BUBEIXUANRANDEobjectCHENGZUOBEITICHULE。XIANGLEJIEGENGDUOGUANYUSHIZHUITIHESHIZHUITITICHUDEXINXI,QINGYUEDUthis page。

    -CPUSHOUJIJIANGYAOBEIXUANRANDEMEIGEobjectDEXINXI,BINGBAZHEIXIESHUJUFENLEIWEIZHILINGBEICHENGZUOHUIZHIZHILINGdraw calls。YIGEdraw callBAOHANWANGGESHUJUYIJIWANGGEYINGGAIZENYANGBEIXUANRAN。LIRU,YINGGAISHIYONGNAGEWENLI。ZAIYIDINGDEQINGKUANGXIA,GONGXIANGSHEZHIDEYIXIEobjectsKENENGHUIBEIHEBINGWEIYIGEdraw call。HEBINGBUTONGobjectsDESHUJUDAOTONGYIGEdraw callBEICHENGZUObatching。

    -CPUJIMEIGEdraw callCHUANGJIANYIGESHUJUBAO,CHENGWEIbatch。BatchYOUSHIHUIBAOHANYIXIEdraw callYIWAIDESHUJU,DANSHIZHEIXIEQINGKUANGTONGCHANGBUHUIDUIXINGNENGYOUSHENMEYINGXIANG,YINCIZAIBENWENZHONGWOMENJIANGBUHUIKAOLVZHEIXIESHUJU。

    MEIYIGEbatchBIXUBAOHANYIGEdraw call,CPUXIANZAIHUIZUORUXIAGONGZUO:

    -CPUKENENGHUIFACHUZHILING,SHIDEGPUGAIBIANYIXIEXUANRANZHUANGTAIDEBIANLIANG。ZHEIGEZHILINGBEICHENGWEISetPass call。SetPassTONGZHIGPU,SHIYONGNAXIESHEZHIQUXUANRANXIAYIGEWANGGE。ZHIYOUZAIXUANRANXIAYIGEWANGGESHI,XUANRANZHUANGTAIHEXUANRANSHANGYIGEWANGGESHIFASHENGLEGAIBIANDEQINGKUANGXIA,CAIHUIDIAOYONGSetPass call。

    -CPUBAdraw callFASONGJIGPU。draw callZHISHIGPUSHIYONGZUIJINDESetPass callDINGYIDESHEZHIQUXUANRANZHIDINGDEWANGGE。

    荣耀彩票代理-YIDINGDEQINGKUANGXIA,batchKENENGXUYAOBUZHIYIGEDEpass。passSHIYIDUANshaderDAIMA,BINGQIEXINDEpassXUYAOGAIBIANXUANRANZHUANGTAI。DUIYUbatchZHONGDEMEIGEpass,CPUBIXUFASONGYIGEXINDESetPass callRANHOUBIXUYAOZAICIFASONGdraw call。

    TONGSHI,GPUZUORUXIAGONGZUO:

    荣耀彩票代理-GPUANZHAOCPUFASONGDEZHILINGSHUNXUCHULIZHEIXIEZHILING。

    -RUGUODANGQIANRENWUSHISetPass call,NEIMEGPUGENGXINXUANRANZHUANGTAI。

    -RUGUODANGQIANRENWUSHIdraw call,NEIMEGPUXUANRANWANGGE。XUANRANWANGGEFASHENGZAIHENDUOJIEDUAN,BUTONGJIEDUANDEshaderDAIMAKEYIDINGYIXUANRAN。ZHEIBUFENDEXUANRANGUOCHENGSHIFENFUZA,WOMENBUHUIXIANGXIJIANGJIE,DANSHILIJIEXIAMIANDEZHISHISHIHENYOUYONGDE:DINGDIANZHESEQIvertex shaderGAOSUGPUZENMECHULIWANGGEDEDINGDIAN。PIANYUANZHESEQIfragment shaderGAOSUGPUZENMEHUIZHIDANDUDEXIANGSU。

    荣耀彩票代理-ZHEIGEGUOCHENGHUIZHONGFUZHIXING,ZHIDAOSUOYOUCPUFASONGDERENWUDOUBEIGPUWANCHENG。

    XIANZAIWOMENLEJIELEUnityXUANRANZHENSHIFASHENGLESHENME,RANGWOMENKAOLVXUANRANSHIKENENGFASHENGDEYIXIEWENTI。

    渲染问题的类型

    LIJIEXUANRANZUIZHONGYAODESHI:WEILEXUANRANYIZHEN,CPUHEGPUBIXUDOUWANCHENGTAMENDERENWU。TAMENZHONGDERENHEYIGEHUAFEILETAIZHANGDESHIJIANQUWANCHENGRENWU,DOUHUIZAOCHENGXUANRANYANCHI。XUANRANWENTIYOULIANGGEJIBENDEYUANYIN。DIYILEIWENTISHIYOUDIXIAODEXUANRANGUANXIANYINQIDE。DANGXUANRANGUANXIANZHONGYIBUHUOZHEDUOBUHUAFEILETAIZHANGSHIJIAN,DADUANLEPINGHUADESHUJULIUSHI,XUANRANGUANXIANHUIHENDIXIAO。XUANRANGUANXIANDEDIXIAOBEICHENGWEIPINGJING。DIERLEIWENTISHIYOUYU,XUANRANGUANXIANBEISAIRULETAIDUODESHUJU。JISHISHIZUIGAOXIAODEXUANRANGUANXIAN,DUIYUYIZHENZHONGKEYICHULIDESHUJULIANGYESHIYOUXIANZHIDE。

    DANGWOMENDEYOUXIHUAFEITAIZHANGDESHIJIANQUXUANRANYIZHEN,SHIYOUYUCPUHUAFEILEGUOZHANGDESHIJIANQUWANCHENGXUANRANRENWUSHI,WOMENDEYOUXIBEICHENGWEICPUYUESHU。DANGWOMENDEYOUXIHUAFEITAIZHANGDESHIJIANQUXUANRANYIZHEN,SHIYOUYUGPUHUAFEILEGUOZHANGDESHIJIANQUWANCHENGXUANRANRENWUSHI,WOMENDEYOUXIBEICHENGWEIGPUYUESHU。

    理解渲染问题

    ZAIWOMENZUORENHEXIUGAIQIAN,XIANSHIYONGProfilerLIJIEYINQIWENTIDEYUANYINSHIZHIGUANZHONGYAODE。BUTONGDEWENTIXUYAOBUTONGDEJIEJUEFANGAN。CELIANGWOMENZUOCHUDEGAIBIANDEXIAOGUOYESHIHENZHONGYAODE。XIUFUXINGNENGWENTISHIYIXIANGPINGHENGXINGDEGONGZUO,GAIJINYIFANGMIANDEXINGNENGWENTI,HENKENENGHUIDUIQITAFANGMIANYOUFUMIANYINGXIANG。

    WOMENJIANGSHIYONGLIANGGEGONGJULAIBANGZHUWOMENLIJIEHEJIEJUEXUANRANXINGNENGWENTI。ProfilerHEframe debugger。TAMENDOUSHIUnityNEIZHIDEGONGJU。

    Profiler

    ProfilerCHUANGKOUYUNXUWOMENSHISHIDEKANDAOYOUXIDEXINGNENG,WOMENKEYIKANDAOYOUXIDEHENDUOFANGMIANDESHUJU,BAOKUONEICUNSHIYONG,XUANRANGUANXIAN,JIAOBENXINGNENGDENGDENG。

    RUGUONIHAIBUSHUXISHIYONGProfiler,QINGCANKANUnityYONGHUSHOUCEthis page of the Unity Manual,YIJIZHEIPIANJIAOCHENGUnityXINGNENGYOUHUA(1)-GUANFANGJIAOCHENGThe Profiler windowFANYI 。

    Frame Debugger

    frame debuggerYUNXUWOMENYIBUYIBUDECHAKANYIZHENSHIZENYANGBEIXUANRANDE。WOMENKEYISHIYONGTACHAKANXIANGXIDEXUANRANXINXI,RUZAIMEIGEdraw callZHONGDOUHUIZHILESHENME,MEIGEdraw callDEshaderSHUXINGYIJIFASONGDAOGPUDESHIJIANDESHUNXU。ZHEIXIEXINXIBANGZHUWOMENLIJIEWOMENDEYOUXISHIZENYANGXUANRANDEYIJIWOMENKEYIZAINALIGAIJINXINGNENG。

    RUGUONIHAIBUSHUXIframe debuggerDESHIYONG,QINGCANKAOthis page of the Unity ManualYIJIZHEIGESHIPINJIAOCHENGthis tutorial video。

    找到性能问题的原因

    ZAIGAIJINWOMENYOUXIDEXUANRANXINGNENGQIAN,WOMENBIXUXIANQUERENWOMENYOUXIYUNXINGMANSHIYOUXUANRANWENTIYINQIDE。RUGUOZHENZHENGDEWENTISHIYOUYUGUOYUFUZADEYONGHUJIAOBENYINQIDE,NEIMEWOMENQUYOUHUAXUANRANXINGNENGSHIHAOWUYIYIDE。RUGUONIBUTAIQUEREN,XINGNENGWENTISHIFOUYOUXUANRANYINQIDE,QINGCANKAOUnityXINGNENGYOUHUA(2)-GUANFANGJIAOCHENGDiagnosing performance problems using the Profiler windowFANYI 。

    荣耀彩票代理YIDANWOMENQUERENSHIXUANRANWENTI,WOMENBIXUTONGSHIQUERENSHICPUXIANZHIHAISHIGPUXIANZHI。BUTONGWENTIYOUBUTONGDEJIEJUEFANGAN,SUOYIZAISHITUXIUFUWENTIQIAN,LIJIEYINQIWENTIDEYUANYINSHIZHIGUANZHONGYAODE。RUGUONIBUQUEDINGNIDEYOUXISHICPUXIANZHIHAISHIGPUXIANZHI,QINGCANKAOUnityXINGNENGYOUHUA(2)-GUANFANGJIAOCHENGDiagnosing performance problems using the Profiler windowFANYI 。

    如果是CPU受限

    JIBENSHANG,ZAIXUANRANYIZHENZHONG,CPUDEGONGZUOFENWEISANLEI:

    -JUEDINGSHENMEBIXUBEIHUIZHI

    -WEIGPUZHUNBEIHAOMINGLING

    -FASONGMINGLINGJIGPU

    ZHEISANLEIGONGZUOBAOHANHENDUODULIDERENWU,ZHEIXIERENWUKENENGSHITONGGUODUOXIANCHENGGONGZUODE。DUOXIANCHENGYUNXUBUTONGDERENWUTONGSHIZHIXING;DANGYIGEXIANCHENGZHIXINGYIGERENWUSHI,LINGYIGEXIANCHENGKEYITONGSHIZHIXINGWANQUANBUTONGDERENWU。ZHEIYIWEIZHEGONGZUONENGGOUGENGKUAIDEWANCHENG。DANGXUANRANRENWUBEIFENFADAOBUTONGDEXIANCHENGSHI,CHENGWEIDUOXIANCHENGXUANRAN。

    UnityXUANRANGUOCHENGZHONGHESANLEIXIANCHENGXIANGGUAN:ZHUXIANCHENG,XUANRANXIANCHENGHEGONGRENXIANCHENG(the main thread, the render thread and worker threads)。ZHUXIANCHENGYONGYUWOMENYOUXIDEZHUYAOCPURENWU,BAOKUOYIXIEXUANRANRENWU。XUANRANJINCHENGSHIZHUANMENYONGYUFASONGMINGLINGJIGPUDE。MEIGEGONGRENXIANCHENGZHIXINGYIGEDANDUDERENWU,LIRUTICHUHEWANGGEMENGPI。NAXIERENWUZHIXINGZAINAGEXIANCHENG,QUJUEYUWOMENYOUXIYUNXINGDEYINGJIANHEYOUXIDESHEZHI。LIRU,CPUDEHEXINSHULIANGYUEDUO,JIUHUISHENGCHENGYUEDUODEGONGRENXIANCHENGSHU。YOUYUZHEIGEYUANYIN,ZAIWOMENDEMUBIAOYINGJIANSHANGJINXINGXINGNENGFENXISHISHIFENZHONGYAODE。ZAIBUTONGDESHEBEISHANG,WOMENYOUXIDEBIAOXIANKENENGXIANGCHAHENDUO。

    YOUYUDUOXIANCHENGXUANRANFEICHANGFUZABINGQIEYILAIYINGJIAN,ZAIWOMENCHANGSHIGAIJINXINGNENGSHI,BIXUSHOUXIANLIJIESHINAXIERENWUDAOZHILECPUXIANZHI。RUGUOWOMENDEYOUXIYUNXINGHUANMANSHIYINWEIZAIYIGEXIANCHENGSHANGTICHUCAOZUOHUAFEILETAIZHANGDESHIJIAN,NEIMEWOMENZAILINGYIGEXIANCHENGSHANGJIANGDIFASONGJIGPUMINGLINGDESHIJIANSHIBUHUIYOUSHENMEBANGZHUDE。

    荣耀彩票代理ZHUYI:BUSHISUOYOUDEPINGTAIDOUZHICHIDUOXIANCHENGXUANRAN,ZAICISHI,WebGLBUZHICHIZHEIGEGONGNENG。ZAIBUZHICHIDUOXIANCHENGXUANRANDEPINGTAISHANG,SUOYOUDERENWUDOUZAIXIANGTONGDEXIANCHENGZHONGZHIXING。RUGUOZAIZHEIYANGDEPINGTAISHANG,CPUXIANZHISHI,RENHEYOUHUACPUDEGONGZUODOUHUIGAIJINCPUXINGNENG。RUGUOWOMENDEYOUXISHIZHEIZHONGQINGKUANG,WOMENYINGGAIYUEDUXIAMIANDEQUANBUZHANGJIE,BINGQIEKAOLVNAXIEYOUHUAZUISHIHEWOMENDEYOUXI。

    图形工作Graphics jobs

    ZAIPlayer settingsZHONGDEGraphics jobsXUANXIANGJUEDINGLEUnitySHIFOUSHIYONGGONGRENXIANCHENGQUZHIXINGYIXIEYUANBENXUYAOZAIZHUXIANCHENGHUOZHEXUANRANXIANCHENGZHONGZHIXINGDERENWU,ZAIZHICHIZHEIGEGONGNENGDEPINGTAISHANG,TANENGGOUTIGONGKEGUANDEXINGNENGTISHENG。RUGUOWOMENXIWANGSHIYONGZHEIGEGONGNENG,WOMENYINGGAIFENBIEDUIKAIQIHUOZHEGUANBICIGONGNENGJINXINGXINGNENGFENXI,YIGUANCHAZHEIGEGONGNENGDUIXINGNENGDETISHENGXIAOGUO。

    找出哪些任务对性能问题有影响

    荣耀彩票代理WOMENKEYISHIYONGProfilerLAIJIANCHANAXIERENWUYINQILECPUXIANZHI。QINGCANKAO。。。

    XIANZAIWOMENLIJIELENAXIERENWUYINQIWOMENYOUXICPUXIANZHI,RANGWOMENKANKANCHANGJIANDEWENTIHEJIEJUEFANGAN。

    发送命令到GPU

    荣耀彩票代理FASONGMINGLINGDAOGPUHUAFEISHIJIANGUOZHANGSHIYINQICPUXIANZHIDEZUICHANGJIANDEYUANYIN。ZAIDADUOSHUPINGTAISHANG,ZHEIGERENWUSHIYOUXUANRANXIANCHENGZHIXINGDE,GEBIEPINGTAIZAIGONGRENXIANCHENGSHANGZHIXING(RUps4)。

    荣耀彩票代理FASONGMINGLINGDAOGPUZHONG,QIZHONGZUIHAOSHIDECAOZUOSHISetPass call。RUGUOCPUXIANZHISHIYOUFASONGMINGLINGDAOGPUYINQIDE,NEIMEJIANGDISetPassDESHULIANGTONGCHANGSHIZUIHAODEGAISHANXINGNENGDEBANFA。

    ZAIUnityDEXUANRANProfilerZHONG,WOMENKEYIKANDAOYOUDUOSHAOSetPass callHEbatchesBEIFASONG。YOUDUOSHAOSetPass callBEIFASONGHUIZAOCHENGXINGNENGWENTI,HEYOUXIDEMUBIAOYINGJIANGUANXIHENDA。ZAIGAODUANpcSHANGKEYIFASONGDESetPass callSHULIANGYUANYUANDAYUYIDONGPINGTAI。

    SetPass callYIJIXIANGGUANDEbatchesSHULIANGQUJUEYUJIGEYINSU。BENWENSHAOHOUHUIXIANGXICHANSHU。JIANDANLAISHUO,TONGCHANGRUXIA:

    荣耀彩票代理-JIANGDIbatchesSHULIANGHUOZHESHIGENGDUODEDUIXIANGGONGXIANGXIANGTONGDEXUANRANZHUANGTAI,TONGCHANGHUIJIANDISetPass callSHULIANG。

    荣耀彩票代理-JIANGDISetPass callSHULIANG,TONGCHANGHUIGAIJINCPUXINGNENG。

    RUGUOJIANGDIbatchesSHULIANGMEIYOUJIANGDISetPass callSHULIANG,TABENSHENYEHUIDAOZHIXINGNENGGAIJIN。ZHEISHIYINWEICPUNENGGOUGENGYOUXIAOLVDECHULIDANGEbatch,JISHITAHEJIGEbatchesBAOHANLESHULIANGXIANGTONGDEWANGGESHUJU。

    荣耀彩票代理JIBENSHANG,YOUSANZHONGFANGFAJIANGDISetPass callHEbatchesDESHULIANG,WOMENJIANGZIXILUNSHUXIAMIANDEMEIYIZHONGFANGFA:

    -JIANGDIYAOXUANRANDEDUIXIANGSHULIANG,TONGCHANGKEYITONGSHIJIANGDISetPass callHEbatchesDESHULIANG。

    -JIANGDIMEIGEYAOXUANRANDEDUIXIANGDEXUANRANCISHU,TONGCHANGKEYIJIANGDISetPass call

    -HEBINGYAOXUANRANDEDUIXIANGDESHUJUDAOGENGSHAODEbatches,KEYIJIANGDIbatchesSHULIANG

    荣耀彩票代理BUTONGDEJISHUSHIYONGYUBUTONGDEYOUXI,WOMENJIANGKAOLVYISHANGSUOYOUDEXUANZE,JUEDINGNAXIESHIHEWOMENDEYOUXIBINGQIEZUOCHUSHIYAN。

    降低要渲染的对象数量

    荣耀彩票代理JIANGDIYAOXUANRANDEDUIXIANGSHULIANGSHIZUIJIANDANDEJIANGDIbatches HE SetPass callsDEFANGFA。YOUYIXIAJIGEJISHU,KEYIJIANGDIYAOXUANRANDEDUIXIANGSHULIANG:

    -JIANDANDEJIANGDIWOMENCHANGJINGDEKEJIANDUIXIANGSHULIANG,SHIYIGEYOUXIAODEJIEJUEFANGAN。LIRU,WOMENYAOXUANRANYOUHENDUORENWUDERENQUN,WOMENKEYICHANGSHIJIANSHAORENWUDESHULIANG,RUGUOKANQILAIRENQUNDEXIAOGUORENGRANBUCUO,NEIMEZHEIJIUSHIYIGEBIQITAFUZAFANGFAKUAIJIEDEDUODEYOUHUAFANGFA。

    荣耀彩票代理-WOMENKEYITONGGUOSHEZHISHEXIANGJIDEJIANCAIPINGMIANDEYUANDUANLAIJIANGDISHEXIANGJIDEHUIZHIFANWEI。ZHEIGESHUXINGBIAOSHIJULISHEXIANGJIDUOYUANDEWUTIJIANGBUZAIBEIXUANRAN。RUGUOWOMENXIANGYINZANGYUANCHUDEWUTIBUBEIXUANRANDESHISHI,WOMENKEYICHANGSHISHIYONGWULAIYANGAIYUANCHU。

    -RUGUOXUYAOJIYUJULIDEGENGXILIDUDEYINZANGWUTI,WOMENKEYISHIYONGSHEXIANGJIDELayer Cull DistancesSHUXING,TAKEYIJIBUTONGDELayerSHEZHIDANDUDEJIANCAIJULI。RUGUOWOMENYOUHENDUOQIANJINGZHUANGSHIXIJIESHI,ZHEIGEFANGFAHENYOUYONG。WOMENKEYISHIYONGHENXIAODEJULIYINZANGXIJIE。

    荣耀彩票代理-WOMENKEYISHIYONGZHEDANGTICHUGONGNENGQUGUANBIBEIQITAWUTIZHEDANGDEWUTIDEXUANRAN。LIRU,WOMENCHANGJINGZHONGYOUYIGEHENDADEJIANZHU,WOMENKEYISHIYONGZHEDANGTICHUGONGNENG,GUANBITAHOUMIANDEWUTIDEXUANRAN。UnityDEZHEDANGTICHUGONGNENGBUSHIYONGYUSUOYOUDECHANGJING,TAHUIDAOZHIEWAIDEcpuXIAOHAO,BINGQIEXIANGGUANSHEZHIHENFUZA,DANSHIZAIYIXIECHANGJINGZHONG,TAKENENGHUIJIDADEGAISHANXINGNENG。SHIYONGZHEDANGTICHUDEZUIJIASHIJIAN,This Unity blog post on occlusion culling best practices。

    LINGWAI,WOMENKEYITONGGUOSHOUGONGDEGUANBIWUTIXUANRANLAISHIXIANWOMENZIJIDEZHEDANGTICHU,WOMENKEYISHOUGONGDEGUANBIWOMENZHIDAOWANJIAWUFAKANDAODEWUTIDEXUANRAN。LIRU,RUGUOWOMENDECHANGJINGBAOHANYIXIEGUOCHANGDEWUTI,NEIMEZAITAMENCHUXIANZHIQIANHUOZHEYICHUYIHOU,WOMENYINGGAISHOUGONGDEGUANBITAMENDEXUANRAN。DUIYUWOMENYOUXILAISHUO,SHIYONGWOMENDEZHISHI,SHOUGONGDETICHU,WANGWANGBIUnityDONGTAIDEZHEDANGTICHUYOUXIAODEDUO。

    降低每个要渲染的对象的渲染次数

    荣耀彩票代理SHISHIDEGUANGZHAO,YINYINGHEFANSHEKEYIJIDADETIGAOWOMENYOUXIDEZHENSHIGAN,DANSHIZHEIXIECAOZUOKENENGFEICHANGANGGUI。SHIYONGZHEIXIEGONGNENGKENENGDAOZHIWUTIBEIXUANRANDUOCI,ZHEIDUIXINGNENGYOUHENDADEYINGXIANG。

    ZHEIXIEGONGNENGDEJINGQUEDEYINGXIANGYILAIYUWOMENYOUXIXUANZEDEXUANRANLUJING。XUANRANLUJING,YEJIUSHIBIAOMINGDANGWOMENHUIZHICHANGJINGDESHIHOU,XUANRANJISUANDEZHIXINGSHUNXU。BUTONGXUANRANLUJINGZUIZHUYAODEBUTONG,SHITAMENZENMECHULISHISHIGUANGZHAO,YINYINGHEFANSHE。TONGCHANGLAISHUO,RUGUOWOMENYOUXIYUNXINGZAIBIJIAOGAODUANDESHEBEISHANG,BINGQIEYINGYONGLEHENDUOSHISHIGUANGZHAO,YINYINGHEFANSHESHI,YANCHIXUANRANSHIBIJIAOHAODEXUANZE。QIANXIANGXUANRANSHIYONGYUDIDUANSHEBEI,BINGQIEBUSHIYONGYISHANGGONGNENG。JINGUANRUCI,RUGUOWOMENXUYAOGENGHAODESHIYONGSHISHIGUANGZHAO,YINYINGHEFANSHEDENGGONGNENG,QINGKUANGSHISHIFENFUZADE,ZUIHAOYANJIUXIANGGUANZHUTIYIJISHIYAN。QINGCANKAOThis page of the Unity ManuaZHEISHIYIGESHIFENYOUYONGDEQIDIAN。 QINGCANKAOThis tutorialZHEILIBAOHANLEUnityZHONGGUANGZHAODEXIANGGUANZHUTINEIRONG。

    荣耀彩票代理BULUNXUANZENAZHONGXUANRANLUJING,SHIYONGSHISHIGUANGZHAO,YINYINGHEFANSHEDOUHUIYINGXIANGWOMENYOUXIDEXINGNENG,SUOYI,LIJIEZENYANGQUYOUHUATAMENSHISHIFENZHONGYAODE。

    -UnityZHONGDONGTAIGUANGZHAOSHIHENFUZADEZHUTI,TAOLUNTACHAOGUOLEBENWENFANWEI,QINGCANKAOthis tutorialHE this page of the Unity Manual。

    荣耀彩票代理-DONGTAIGUANGZHAOHENANGGUI。DANGWOMENDECHANGJINGBAOHANJINGTAIWUTISHI,LIRUFENGJING,WOMENKEYISHIYONGHONGBEIJISHUQUYUJISUANCHANGJINGDEGUANGZHAO,ZHEIYANGJIUBUXUYAOZAIYUNXINGSHIJISUANGUANGZHAOLE。JUTIQINGCANKAOThis tutorialHE this section of the Unity Manual。

    -RUGUOWOMENXIWANGZAIYOUXIZHONGSHIYONGSHISHIYINYING,WOMENKENENGKEYIGAIJINZHEIFANGMIANDEXINGNENG。This page of the Unity Manual ZHEIPIANWENZHANGJIESHAODEYINYINGSHEZHI,YIJIZHEIXIESHEZHIZENMEYINGXIANGXINGNENGDE。LIRU,WOMENKEYISHEZHIYINYINGJULI,QUEBAOZHIYOUJINCHUDEWUTITOUSHEYINYING。

    荣耀彩票代理-FANSHETANTOUCHUANGJIANZHENSHIGANDEFANSHE,DANSHIHUIHENDADEYINGXIANGbatchesSHULIANG。ZUIHAOWOMENZAIXINGNENGMINGANDECHANGHEZUIXIAOHUADESHIYONGTA,BINGQIEWULUNZAINASHIYONGLETAMENDOUYAOJINKENENGDEYOUHUA。FANSHETANTOUDEYOUHUAQINGCANKAOThis page of the Unity Manual。

    合并物体为更少的batches

    ZAIYIDINGQINGKUANGXIA,YIGEbatchKEYIBAOHANDUOGEWUTIDESHUJU。WEILEKEYISHIHEHEBING,WUTIBIXUMANZUYIXIATIAOJIAN:

    -GONGXIANGXIANGTONGCAIZHIDEXIANGTONGSHILI

    荣耀彩票代理-YOUYIYANGDESHEZHI(LIRU,WENLI,shader,shaderCANSHUDENG)

    HEBINGHESHIDEWUTIKEYIGAIJINXINGNENG,JINGUANRUCI,SUOYOUDEYOUHUAJISHUWOMENDOUBIXUXIAOXINDEFENXI,HEBINGDEXIAOHAOMEIYOUCHAOGUOHUODEDEXINGNENGGAIJIN。

    HEBINGHESHIDEWUTIYOUJIZHONGBUTONGDEJISHU:

    -JINGTAIbatchingJISHU,YUNXUUnityHEBINGXIANGLINDEBUYIDONGDEHESHIDEWUTI。YIGEHAODELIZISHI,YIDUIXIANGSIDEWUTI,LIRUJUSHI,KEYICONGJINGTAIbatchZHONGSHOUYILIANGDUO。ZAIYOUXIZHONGSHEZHIJINGTAIbatch,QINGCANKAOThis page of the Unity Manual。

    荣耀彩票代理JINGTAIbatchHUIDAOZHIGENGGAODENEICUNZHANYONG,SUOYIWOMENZAIYOUHUASHIYAOHENGLIANGZHEIGEDAIJIA。

    -DONGTAIbatchingJISHU,SHILINGWAIYIZHONGUnityHEBINGHESHIDEWUTIDEJISHU,BULUNTASHIYUNDONGHAISHIJINGZHI。DUINENGGOUSHIYONGZHEIZHONGJISHUHEBINGDEWUTI,YOUYIXIEXIANZHI。ZHEIXIEXIANZHIQINGCANKAOthis page of the Unity Manual DONGTAIbatchingHUIYINGXIANGCPUSHIYONG,KENENGHUIYINQICPUXIAOHAODESHIJIANDAYUJIESHENGDESHIJIAN。WOMENYINGGAITONGGUOSHIJIANHENGLIANGTADEDAIJIA,BINGQIEZAISHIYONGDESHIHOUZHUYIZHEIXIE。

    -HEBINGUnityDEUIYUANSUYAOGENGFUZAYIXIE,YINWEITAHUISHOUWOMENJIEMIANBUJUDEYINGXIANG。JUTIQINGCANKAOThis video from Unite Bangkok 2015HEthis guide to optimizing Unity UI。

    荣耀彩票代理-GPU instancingJISHUYUNXUDALIANGYIYANGDEWUTISHIFENGAOXIAODEHEBINGCHULI。TADESHIYONGYOUYIDINGXIANZHI,BINGQIEBUSHISUOYOUYINGJIANDOUZHICHI,DANSHIRUGUOWOMENDEYOUXIZAICHANGJINGZHONGTONGSHICUNZAIDALIANGXIANGTONGDEWUTI,WOMENKEYIZAIZHEIGEJISHUXIASHOUYI。QINGCANKAOThis page of the Unity Manual ZHEILIJIESHAOLEUnityZHONGGPU instancingDEJISHUXIJIEYIJIZENYANGSHIYONGTA,ZHICHINAXIEPINGTAI,YIJIZAINAZHONGHUANJINGXIA,WOMENDEYOUXIHUISHOUYIYUCI。

    荣耀彩票代理-WENLITUJI,SHIBADALIANGDEXIAOWENLIHEBINGWEIYIZHANGDADEWENLITUDEJISHU。TATONGCHANGZAI2dYOUXIHEUIXITONGZHONGSHIYONG,DANSHIYEKEYIZAI3dYOUXIZHONGSHIYONG。DANGWOMENSHIYONGZHEIGEJISHUWEIYOUXICHUANGJIANMEISHUZIYUANSHI,WOMENKEYIQUEBAOWUTIGONGXIANGTONGYITUJI,YINCISHIHEHEBING。UnityNEIZHILETUJIGONGJUSprite Packer。

    -WOMENKEYISHOUGONGDEHEBINGGONGXIANGXIANGTONGCAIZHIHEWENLIDEWANGGE,BULUNSHIZAIUnityBIANJIQIZHONGHAISHIZAIYUNXINGSHISHIYONGDAIMA。DANGWOMENSHOUGONGHEBINGWANGGESHI,WOMENBIXUYISHIDAO,YINYING,GUANGZHAOHETICHURENGRANZAIMEIGEDANDUDEWUTICENGJISHANGCAOZUO。ZHEIYIWEIZHE,HEBINGWANGGESUOCHANSHENGDEXINGNENGTISHENG,HENKENENGBEIBENLAIKEYIBEITICHUDEWUTI,BUZAIBEITICHULE,DAILAIDEYINGXIANGDIXIAO。RUGUOWOMENXIANGSHENRUYANJIUZHEIXIANGJISHU,WOMENYINGGAICHAKANMesh.CombineMeshesHANSHU ,Unity’s Standard Assets packageZHONGDECombineChildrenJIAOBENSHIYIGELIZI。

    -ZAIJIAOBENZHONG,WOMENBIXUXIAOXINSHIYONGRenderer.material,ZHEIHUIFUZHICAIZHI,BINGQIEFANHUIYIGEXINFUBENDEYINYONG。ZHEIYANGZUOHUIPOHUAIbatching,RUGUOZHEISHIHEBINGZHONGDEYIBUFEN。YINWEIrendererBUZAICHIYOUXIANGTONGDECAIZHIYINYONGLE。RUGUOWOMENXUYAOFANGWENYIGEZAIHEBINGZHONGDEWUTIDECAIZHI,WOMENYINGGAISHIYONGRenderer.sharedMaterial。

    剔除,排序以及合并

    TICHU,SHOUJIJIANGYAOBEIHUIZHIDEWUTIDESHUJU,PAIXUZHEIXIESHUJU,SHENGCHENGGPUMINGLING,ZHEIXIEDOUDUICPUXIANZHIYOUGONGXIAN。ZHEIXIERENWUHUIZAIZHUXIANCHENGHUOZHEDULIDEGONGRENXIANCHENGZHONGYUNXING,QUJUEYUWOMENYOUXIDESHEZHIYIJIMUBIAOYINGJIAN。

    -TICHUBENSHENXIAOHAOBINGBUDA,DANSHIJIANSHAOBUBIYAODETICHUCAOZUOKENENGHUIDUIXINGNENGYOUBANGZHU。TICHUSHIDUICHANGJINGZHONGMEIGEJIHUODEWUTI,MEIGESHEXIANGJIMEIGEWUTIDEJISUAN,SHENZHISHINAXIEBUBEIXUANRANDECENGJIDEWUTI。WEILEJIANGDIZHEIXIE,WOMENYINGGAIGUANBISHEXIANGJI,BINGQIEDUIYUDANGQIANBUSHIYONGDEWUTIFANJIHUOHUOZHEJINYONGrenderer。

    -BatchingKEYIJIDADEZENGJIAXIANGGPUFASONGMINGLINGDESUDU,DANSHITAYOUSHIKENENGHUIZAIQITADIFANGDAILAIXIAOHAO。RUGUObatchingCAOZUOZAOCHENGLECPUXIANZHI,WOMENKEYIHUIYAOXIANZHISHOUGONGHUOZHEZIDONGbatchingCAOZUODESHULIANG。

    蒙皮

    SkinnedMeshRenderersZAIDANGWOMENSHIYONGYIGEWANGGEDONGHUABIANXINGSHI(JISHUSHANGCHENGWEIGUGEDONGHUA)SHIYONG。TAZUIDUODEYONGZAIDONGHUARENWUSHENSHANG。XUANRANMENGPIDERENWUTONGCHANGZAIZHUXIANCHENGHUOZHEDANDUDEGONGRENXIANCHENG,YILAIYUYOUXIDESHEZHIYIJIMUBIAOYINGJIAN。

    荣耀彩票代理XUANRANMENGPIKENENGHUISHIANGGUIDECAOZUO。RUGUOWOMENZAIXUANRANProfilerZHONG,KANDAOXUANRANMENGPIDUICPUXIANZHIYINGXIANGHENDA,ZHEILIYOUJIGEFANGFAWOMENKEYICHANGSHIQUGAIJINTADEXINGNENG。

    -WOMENYINGGAIKAOLVDANGQIANZHENGZAISHIYONGSkinnedMeshRenderersZUJIANDEWUTISHIFOUYOUBIYAOSHIYONG。KENENGSHIZHEIZHONGQINGKUANG,WOMENDAORUDEMOXINGBAOHANLESkinnedMeshRenderersZUJIAN,DANSHIWOMENQISHIBINGBUXUYAOTAYUNDONG。ZHEIZHONGQINGKUANGXIA,WOMENSHIYONGMeshRendererZUJIANTIHUANTA,HUIYOUZHUYUXINGNENGTISHENG。DANGWOMENZAIUnityZHONGDAORUMOXINGSHI,RUGUOWOMENZAIMOXINGDEDAORUSHEZHIZHONGXUANZEBUDAOCHUDONGHUA,ZHEIGEMOXINGJIUHUIBAOHANYIGEMeshRendererZUJIANTIHUANSkinnedMeshRenderersZUJIAN。

    荣耀彩票代理-RUGUOWOMENZHIZAIYIXIESHIKEYUNDONGWUTI(LIRU,ZHIZAIYOUXIKAISHISHI,HUOZHEZHIYOUJULISHEXIANGJIYIDINGJULINEISHI),WOMENYINGGAIJIAOHUANWEIYIGEXIJIEJIAOSHAODEWANGGE,HUOZHESHIYONGMeshRendererTIHUANSkinnedMeshRenderers。SkinnedMeshRenderersZUJIANYOUYIGEHANSHUBakeMesh,KEYIYONGPIPEIDEDONGZUOCHUANGJIANYIGEWANGGE,ZHEIGESHIFENYOUYONG,ZAIBUTONGDEWANGGEHUOXUANRANQIZHONGQIEHUANSHIWUTIBUHUIYOUKEJIANDEBIANHUA。

    荣耀彩票代理-ZHEIXIEWENZHANGYOUGUANYUSHIYONGMENGPIDEYOUHUAJIANYI,QINGCANKAOThis page of the Unity Manual HEthe Unity Manual page on the SkinnedMeshRenderer component,HAIYINGGAIJIZHU,MENGPIDEXIAOHAOSHIZAIMEIGEDINGDIANSHANG,YINCI,SHIYONGDINGDIANJIAOSHAODEMOXINGKEYIYOUXIAOJIANGDIGONGZUOLIANG。

    -ZAIYIXIEPINGTAISHANG,HECPUXIANGBI,MENGPIKEYIBEIGPUGENGGAOXIAODECHULI。RUGUOWOMENDEGPUBIJIAOQIANG,ZHEIGEZHIDECHANGSHI。WOMENKEYIWEIDANGQIANPINGTAIKAIQIGPUMENGPI,ZAIPlayer SettingsZHONG。

    主线程操作和渲染无关

    LIJIEXUDUOZHUXIANCHENGDERENWUSHIHEXUANRANWUGUANDEHENZHONGYAO。ZHEIYIWEIZHE,RUGUOSHICPUXIANZHIFASHENGZAIZHUXIANCHENG,WOMENYINGGAIBAYOUHUACPUSHIJIANGAIJINXINGNENGDENULIFANGZAIHEXUANRANWUGUANDERENWUSHANG。

    荣耀彩票代理LIRU,ZAIMOUGESHIJIANDIANSHANG,WOMENDEYOUXIXUYAOZUOSHIFENANGGUIDEXUANRANCAOZUOBINGQIEZAIZHUXIANCHENGSHANGWOMENDEJIAOBENCAOZUOYEFEICHANGANGGUI,SHIDECPUXIANZHI。RUGUOWOMENYIJINGZAIBUSUNSHISHIJUEZHENSHIDUDEQIANTIXIAJINKENENGDEYOUHUAXUANRANLE,NEIMEWOMENJIANSHAOYONGHUJIAOBENDECPUXIAOHAOKENENGHUIGAIJINXINGNENG。

    如果游戏是GPU限制

    荣耀彩票代理RUGUOYOUXISHIGPUXIANZHI,NEIMEDIYIJIANSHIJIUSHIZHAODAOGPUPINGJINGDEYUANYIN。GPUXINGNENGZUICHANGBEITIANCHONGLVXIANZHI,YOUQIZAIYIDONGPINGTAI,DANSHIXIANCUNDAIKUANHEDINGDIANCHULIYEKENENGYINGXIANG。RANGWOMENJIANCHAZHEIXIEWENTI,BINGQIEXUEXIYINQIWENTIDEYUANYIN,ZENMEZHENDUANHEZENMEXIUFUWENTI。

    填充率

    TIANCHONGLVSHIZHIGPUZAIPINGMUSHANGMEIMIAOKEYIXUANRANDEXIANGSUSHU。RUGUOWOMENDEYOUXISHOUDAOTIANCHONGLVDEXIANZHI,YIWEIZHEWOMENDEYOUXIMEIZHENCHANGSHIHUIZHIDEXIANGSUSHULIANGCHAOGUOLEGPUDECHULINENGLI。

    JIANCHASHIFOUTIANCHONGLVYINQILEYOUXIGPUXIANZHIHENJIANDAN:

    -SHIYONGProfilerFENXI,ZHUYIGPUSHIJIAN

    -ZAIPlayer settingsZHONGJIANGDIXIANSHIFENBIANLV

    -ZAICIFENXIYOUXI,RUGUOXINGNENGGAISHANLE,HENKENENGSHITIANCHONGLVDEWENTI

    RUGUOQUERENLETIANCHONGLVYINQILEWENTI,YOUJIGEFANGFAKEYIJIEJUEWENTI:

    荣耀彩票代理-PIANYUANshaderSHIGAOSUGPUZENMEYANGQUHUIZHIYIGEXIANGSUDEYIDUANshaderDAIMA。ZHEIDUANDAIMAGPUXUYAOWEIMEIYIGEXUYAOHUIZHIDEXIANGSUZHIXING,SUOYIRUGUOZHEIDUANDAIMAXIAOLVDI,NEIMEHENRONGYIFASHENGXINGNENGWENTI。FUZADEPIANYUANshaderSHIHENCHANGJIANDEYINQITIANCHONGLVWENTIDEYUANYIN。

    -RUGUOWOMENDEYOUXISHIYONGUnityNEIZHIshader,WOMENYINGGAISHIYONGZUIJIANDANHEZUIYOUHUADEshader,WEILEDADAOWOMENXIANGYAODESHIJUEXIAOLV。LIRU,the mobile shadersSHIUnityZHENDUIYIDONGPINGTAIGAODUYOUHUADEshader,WOMENYINGGAISHIYANSHIYONGTAMENSHIFOUKEYIZAIBUYINGXIANGSHIJUEXIAOGUODEQIANTIXIAGAISHANXINGNENG。ZHEIXIEshaderSHIWEILEYIDONGPINGTAISHEJIDE,DANSHITAMENYESHIYONGYURENHEXIANGMU。RUGUOSHIYONGTAMENKEYIDADAOXIANGMUSHIJUEXIAOGUODEYAOQIU,NEIMEZAIFEIYIDONGPINGTAISHANGSHIYONGTAMENYESHINENGGOUHENHAODEGAISHANXINGNENGDE。

    -RUGUOYOUXIZHONGDEWUTISHIYONGDESHIUnityDEStandard Shader,NEIMELIJIEUnityBIANYIZHEIXIEshaderSHIJIYUDANGQIANDECAIZHISHEZHIDESHIHENZHONGYAODE。ZHIYOUNEIXIEDANGQIANSHIYONGDEGONGNENGHUIBEIBIANYI。ZHEIYIWEIZHE,YICHULIRUdetail mapsKEYIJIANSHAOPIANYUANshaderDEFUZADU,ZHEIDUIXINGNENGTISHENGYOUHENDAYICHU。RUGUOWOMENYOUXIZHONGSHIZHEIZHONGQINGKUANG,WOMENYINGGAISHIJIAN,SHIFOUNENGGOUZAIBUYINGXIANGSHIJUEZHILIANGDEQIANTISHITISHENGXINGNENG。

    荣耀彩票代理-RUGUOWOMENYOUXISHIYONGDESHIDINGZHIDEshader,WOMENYINGGAIJINKENENGDEYOUHUATA。YOUHUAshaderSHIYIGEHENFUZADEZHUTI,QINGCANKAOthis page of the Unity ManualHE this page of the Unity Manual。

    -OverdrawSHIZHIXIANGTONGDEXIANGSUHUIZHILEDUOCI。ZHEISHIZAIWUTIHUIZHIZAIQITAWUTIZHISHANGDESHIHOUFASHENGDE,YEZAIHENDACHENGDUSHANGYINQILETIANCHONGLVWENTI。WEILELIJIEOverdraw,WOMENBIXUXIANLIJIEUnityZAICHANGJINGZHONGHUIZHIWUTIDESHUNXU。WUTIDEshaderJUEDINGLEWUTIDEHUIZHISHUNXU,TONGCHANGYOUrender queueSHUXINGJUEDING。UnitySHIYONGZHEIXIEXINXIANZHAOYANGEDESHUNXUHUIZHIWUTI,JUTIXIJIEQINGCANKAOpage of the Unity Manual LINGWAIZAIBUTONGrender queueDEWUTIZAIBEIHUIZHIZHIQIANHUIANBUTONGDESHUNXUPAIXU。LIRU,UnityZAIGeometry queueZHONGWEIZUIXIAOHUAOverdrawHUICONGQIANDAOHOUPAIXUWUTI,DANSHIZAITransparent queueZHONG,WEILEDADAOSHIJUEXIAOGUODEYAOQIU,ZESHICONGHOUDAOQIANPAIXUWUTI。ZAITransparent queueZHONG,CONGHOUXIANGQIANPAIXUWUTIQISHIZUIDAHUALEOverdraw。OverdrawSHIYIGEHENFUZADEZHUTI,BINGQIEMEIYOUYIDAOQIEDEJIEJUEFANGAN,DANSHIJIANGDIZHONGDIEWUTIDESHULIANGSHIDEUnityBUNENGZIDONGPAIXUSHIGUANJIAN。DIAOCHAOverdrawWENTIZUIHAODEQIDIANSHIUnityDECHANGJINGSHITUZHONG,DrawModeYUNXUWOMENKANDAOCHANGJINGZHONGDEOverdraw,WOMENKEYICONGZHEIKAISHIJIANGDIOverdrawDEGONGZUO。ZUICHANGJIANDEYINQIOverdrawDEYINSUSHITOUMINGCAIZHI,WEIYOUHUADELIZI,HEZHONGDIEDEUIYUANSU。SUOYIWOMENYINGGAICHANGSHIYOUHUAZHEIXIE。QINGCANKAOThis article on the Unity Learn site ZHEIPIANWENZHANGJUJIAOYUUI,DANSHIYEBAOHANLEOverdrawDEHENHAODEZHIDAO。

    -SHIYONGPINGMUHOUCHULIJISHUYEHUIJIDADEYINGXIANGTIANCHONGLV,YOUQISHIWOMENSHIYONGLEBUZHIYIZHONGDEPINGMUHOUCHULIDESHIHOU。RUGUOWOMENZAISHIYONGPINGMUHOUCHULISHIYUDAOLETIANCHONGLVWENTI,WOMENYINGGAICHANGSHIBUTONGDESHEZHIHUOZHESHIYONGGENGJIAYOUHUADEPINGMUHOUCHULIBANBEN。LIRUSHIYONGBloom (Optimized)TIHUANBloom。RUGUOWOMENZAITONGYIGESHEXIANGJIXIASHIYONGLEDUOGEPINGMUHOUCHULI,ZHEIJIANGZAOCHENGCHENGBEIDEshader pass。ZHEIZHONGQINGKUANGXIA,WOMENYINGGAIHEBINGshaderDAOYIGEDANDUDEpass,LIRUUnity’s PostProcessing Stack。RUGUOWOMENYOUHUAPINGMUHOUCHULIXIAOGUOHOU,RENGRANYOUTIANCHONGLVWENTI,NEIMEWOMENYEXUYAOKAOLVGUANBIPINGMUHOUCHULI,YOUQISHIZAIDIDUANDESHEBEISHANG。

    显存带宽

    XIANCUNDAIKUANSHIZHIGPUDUXIETADEZHUANYONGNEICUNDESUDU。RUGUOWOMENDEYOUXISHOUXIANYUXIANCUNDAIKUAN,TONGCHANGYIWEIZHEWOMENSHIYONGDEWENLITAIDALE,YIZHIYUGPUWUFAKUAISUCHULI。

    荣耀彩票代理WOMENKEYIANRUXIAFANGFAJIANCHASHIFOUXIANCUNDAIKUANDEWENTI:

    -YONGProfilerFENXIYOUXI,BINGGUANZHUGPUSHIJIAN

    -ZAIZHILIANGSHEZHIZHONGJIANGDIDANGQIANPINGTAIDEWENLIZHILIANG

    荣耀彩票代理-JIXUFENXIYOUXI,RUGUOXINGNENGGAISHANLE,NEIMETONGCHANGSHIXIANCUNDAIKUANDEWENTI。

    RUGUOSHIXIANCUNDAIKUANDEWENTI,WOMENXUYAOJIANGDIWENLIDENEICUNZHANYONG。ZHENDUIBUTONGDEYOUXITONGCHANGYOUBUTONGDEZUIJIAJIEJUEFANGAN,ZHEILIWOMENTIGONGJIGEYOUHUAWENLIDEFANGFA:

    荣耀彩票代理-WENLIYASUOJISHUKEYITONGSHIJIDADEJIANGDIWENLIZAICIPANHENEICUNZHONGDEDAXIAO。RUGUOSHIXIANCUNDAIKUANDEWENTI,NEIMESHIYONGWENLIYASUOJIANXIAOWENLIZAINEICUNDEDAXIAOKEYIBANGZHUGAISHANXINGNENG。UnityZHONGYOUHENDUOKEYONGDEWENLIYASUODEGESHIHESHEZHI。TONGCHANGLAISHUO,YIXIEWENLIYASUOGESHIZHIYAOKEYONGJIUYINGGAIJINKENENGDESHIYONG,JINGUANRUCI,TONGGUOSHIJIANZHAODAOZHENDUIMEIGEWENLIZUIHESHIDESHEZHISHIZUIHAODE。QINGCANKAOThis page in the Unity Manual JIANGSHULEWENLIYASUODEGESHIHEGEZHONGSHEZHIDEXIANGXIXINXI。

    -DUOJIJIANYUANWENLI,SHIUnityDUIYUANCHUDEWUTISHIYONGDEDIFENBIANLVBANBENDEWENLI。RUGUOWOMENDECHANGJINGBAOHANJULISHEXIANGJIHENYUANDEWUTI,WOMENKEYITONGGUOSHIYONGDUOJIJIANYUANWENLILAIHUANJIEXIANCUNDAIKUANDEWENTI。UnityCHANGJINGSHITUZHONGDEThe Mipmaps Draw ModeYUNXUWOMENCHAKANNAXIEWUTISHOUYIYUDUOJIJIANYUANWENLI,QINGCANKAOthis page of the Unity Manual BAOHANLESHIYONGDUOJIJIANYUANWENLIDEXIANGXIXINXI。

    顶点处理

    荣耀彩票代理DINGDIANCHULISHIZHIGPUBIXUXUANRANWANGGEZHONGDEMEIYIGEDINGDIANDEGONGZUO。DINGDIANCHULIDEXIAOHAOSHOULIANGJIANSHIQINGYINGXIANG:BIXUXUANRANDEDINGDIANSHULIANG,YIJIZAIMEIGEDINGDIANSHANGYAOJINXINGDECAOZUOSHULIANG。

    荣耀彩票代理RUGUOWOMENDEYOUXISHIGPUXIANZHI,BINGQIEYIJINGQUERENLEBUSHITIANCHONGLVHEXIANCUNDAIKUANYINQIDEWENTI,NEIMEJIUHENKENENGSHIDINGDIANCHULIYINQIDE。RUGUOSHIZHEIZHONGQINGKUANG,NEIMECHANGSHIJIANSHAOGPUDINGDIANCHULIDESHULIANGHENKENENGHUIHUODEXINGNENGTISHENG。

    荣耀彩票代理YOUYIXIEFANGFAKEYIJIANSHAODINGDIANSHULIANGHUOZHEZAIMEIGEDINGDIANSHANGZHIXINGDECAOZUOSHULIANG:

    -SHOUXIAN,WOMENYINGGAIJIANGDIBUBIYAODEWANGGEFUZADE。RUGUOWOMENSHIYONGDEWANGGEBAOHANZAIYOUXIZHONGWUFABEIKANJIANDELOD,HUOZHEDIXIAODEWANGGEZAICUOWUDECHUANGJIANSHIBAOHANLETAIDUODEDINGDIAN,ZHEIXIEDOUHUILANGFEIGPUDEGONGZUOLIANG。ZUIZHIJIEDEJIANGDIDINGDIANCHULIDEXIAOHAODEFANGFA,JIUSHIZAI3dJIANMORUANJIANZHONGCHUANGJIANMOXINGSHISHIYONGGENGSHAOSHULIANGDEDINGDIAN。

    -WOMENKEYICHANGSHISHIYONGFAXIANTIETUJISHU,WOMENSHIYONGTALAIMONIGENGGAOJIHEFUZADUDEWANGGE。JINGUANSHIYONGZHEIZHONGJISHUYOUYIXIEGPUFUZAI,DANSHIZAIDUOSHUQINGKUANGXIA,TAHUIHUODEXINGNENGTISHENG。QINGCANKAOThis page of the Unity Manual JIESHAOLESHIYONGFAXIANTIETUJISHUQUMONIGENGFUZADEWANGGE。

    -RUGUOWOMENDEYOUXIMEIYOUSHIYONGFAXIANTIETUJISHU,ZAIWANGGEDEDAORUSHEZHIZHONG,WOMENKEYIGUANBIDINGDIANDEQIEXIAN。ZHEIHUIJIANGDIGPUCHULIDINGDIANDESHUJULIANG。

    -LOD(Level of detail),ZHEISHIDANGWUTIYUANLISHEXIANGJISHI,JIANGDIWUTIWANGGEDEFUZADUDEJISHU。ZHEIKEYIYOUXIAODEJIANGDIGPUXUYAOXUANRANDEDINGDIANSHULIANG,BINGQIEBUYINGXIANGSHIJUEBIAOXIAN。JUTISHIYONGXIJIEQINGCANKAO. The LOD Group page of the Unity Manual。

    荣耀彩票代理-DINGDIANshader,SHIYIDUANshaderDAIMA,GAOSUGPUZENMEHUIZHIMEIGEDINGDIAN。RUGUOWOMENDEYOUXISHOUXIANZHIYUDINGDIANCHULIDEYINGXIANG,NEIMEJIANGDIDINGDIANshaderDEFUZADUKENENGHUIYOUZHUYUXINGNENGTISHENG。

    -RUGUOWOMENDEYOUXISHIYONGUnityNEIZHIshader,WOMENYINGGAISHIYONGZUIJIANDANHEZUIYOUHUADEshader,WEILEDADAOWOMENXIANGYAODESHIJUEXIAOLV。。LIRU,the mobile shadersSHIUnityZHENDUIYIDONGPINGTAIGAODUYOUHUADEshader,WOMENYINGGAISHIYANSHIYONGTAMENSHIFOUKEYIZAIBUYINGXIANGSHIJUEXIAOGUODEQIANTIXIAGAISHANXINGNENG。

    --RUGUOWOMENYOUXISHIYONGDESHIDINGZHIDEshader,WOMENYINGGAIJINKENENGDEYOUHUATA。YOUHUAshaderSHIYIGEHENFUZADEZHUTI,QINGCANKAOthis page of the Unity Manual HE this page of the Unity Manual。

    结论

    荣耀彩票代理WOMENYIJINGXUEXILEUnityZHONG,SHIZENYANGXUANRANDE,DANGXUANRANSHIKENENGHUIFASHENGSHENMEWENTI,YIJIZENYANGZAIWOMENDEYOUXIZHONGTIGAOXUANRANDEXINGNENG。SHIYONGZHEIXIEZHISHIYIJIXINGNENGFENXIGONGJUProfiler,WOMENKEYIXIUFUXUANRANXIANGGUANDEXINGNENGWENTI,BINGQIEGOUJIANWOMENDEYOUXISHITAMENJUYOULIUCHANGYOUXIAOLVDEXUANRANLIUSHUIXIAN。

    荣耀彩票代理XIAMIANLIECHUBENWENZHUTIDEXIANGGUANZIYUAN

     

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规