当前位置:网站首页>Unity project optimization case 1
Unity project optimization case 1
2022-07-03 16:12:00 【Listening star】
For the optimization problems encountered in the work , Make a note of , Provide some ideas for everyone to optimize their own projects .
A company has been established recently VR project . I found that the performance problem was serious when I was about to deliver
Usage environment
unity 2018.4.36
cpu i5 10400f
The graphics card 2060 6g
Memory 16G
Analyze and solve the problem
When the program runs, it runs to 100 millisecond ~
Optimization idea
1. Install the development environment on the corresponding computer
2. Use Profile Debug and locate performance problems
a.SkinMesh Excessive consumption .
b. There is one Depth The related consumption is also great . Affect every frame about 10~20 millisecond
3.SkinMesh It's easier to deal with , There are too many animated models , The processing idea is based on whether it is visible , Hide unwanted animation models , Open it when you need it .
4. The corresponding calling function is not found for depth related , Then I looked at the number of calls in each frame 50 many times . Then guess it has something to do with the camera , Finally, it is located that a certain function is used for camera rendering RenderTexture. And then created 50 Multiple cameras . However, this function does not require the camera to be activated all the time , Then change the camera to the de activated state .
5. adopt FrameDebug It is found that the consumption of shadow is also more , Then I observed the scene and found that the object did not produce shadows , The option to generate shadows has been turned off ( As for why to turn off the shadow is another topic ~). Then since the current effect of the scene does not need shadows , But there will be performance consumption on the shadow , Turn off the shadows on the directional light in the scene .
Final effect
Final effect from each frame 100 millisecond , Optimize to most scenes 5 millisecond , Scenes with many animations of individual models 12 Millisecond or so . It takes a total of time to program 2 God , The fine arts 2 God .
边栏推荐
- Salary 3000, monthly income 40000 by "video editing": people who can make money never rely on hard work!
- 工资3000,靠“视频剪辑”月入40000:会赚钱的人,从不靠拼命!
- Effect of ARP package on FTP dump under vxworks-6.6 system
- Semi supervised learning
- Low level version of drawing interface (explain each step in detail)
- Multithread 02 thread join
- 如何在本机搭建SVN服务器
- 远程办公之大家一同实现合作编辑资料和开发文档 | 社区征文
- Myopia: take off or match glasses? These problems must be understood clearly first
- Persisting in output requires continuous learning
猜你喜欢

Remote file contains actual operation

Jmeter线程组功能介绍

How can technology managers quickly improve leadership?

App移动端测试【4】apk的操纵

From the 18th line to the first line, the new story of the network security industry

Microservice - Nacos registration center and configuration center

nifi从入门到实战(保姆级教程)——flow

“用Android复刻Apple产品UI”(2)——丝滑的AppStore卡片转场动画
![[redis foundation] understand redis master-slave architecture, sentinel mode and cluster together (Demo detailed explanation)](/img/1f/3dd95522b8d5f03dd763a6779e3db5.jpg)
[redis foundation] understand redis master-slave architecture, sentinel mode and cluster together (Demo detailed explanation)
![[list to map] collectors Tomap syntax sharing (case practice)](/img/ac/e02deb1cb237806d357a88fb812852.jpg)
[list to map] collectors Tomap syntax sharing (case practice)
随机推荐
Go语言自学系列 | golang中的if else if语句
Break through 1million, sword finger 2million!
突破100万,剑指200万!
工资3000,靠“视频剪辑”月入40000:会赚钱的人,从不靠拼命!
Colab works with Google cloud disk
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (4)
[proteus simulation] 74hc595+74ls154 drive display 16x16 dot matrix
Secsha system 1- login function
[redis foundation] understand redis master-slave architecture, sentinel mode and cluster together (Demo detailed explanation)
ASEMI整流桥UMB10F参数,UMB10F规格,UMB10F封装
"Remake Apple product UI with Android" (3) - elegant statistical chart
切入点表达式
【Proteus仿真】8×8LED点阵屏仿电梯数字滚动显示
Advanced Mathematics (Seventh Edition) Tongji University exercises 2-1 personal solutions
“用Android复刻Apple产品UI”(3)—优雅的数据统计图表
From the 18th line to the first line, the new story of the network security industry
How to initialize views when loading through storyboards- How is view initialized when loaded via a storyboard?
Brush questions -- sword finger offer
请做好3年内随时失业的准备?
Unity项目优化案例一