当前位置:网站首页>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 .
边栏推荐
- SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]
- Go语言自学系列 | golang switch语句
- 2022年Q2加密市场投融资报告:GameFi成为投资关键词
- [proteus simulation] 74hc595+74ls154 drive display 16x16 dot matrix
- 一些事情的反思
- June to - -------
- Multithread 02 thread join
- Secsha system 1- login function
- [combinatorics] combinatorial identity (sum of combinatorial identity products 1 | sum of products 1 proof | sum of combinatorial identity products 2 | sum of products 2 proof)
- Batch files: list all files in a directory with relative paths - batch files: list all files in a directory with relative paths
猜你喜欢

Myopia: take off or match glasses? These problems must be understood clearly first

2022年Q2加密市场投融资报告:GameFi成为投资关键词

Microservices - load balancing ribbon

Intelij idea efficient skills (III)

Low level version of drawing interface (explain each step in detail)

How can technology managers quickly improve leadership?

【声明】关于检索SogK1997而找到诸多网页爬虫结果这件事

Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (II)
![[list to map] collectors Tomap syntax sharing (case practice)](/img/ac/e02deb1cb237806d357a88fb812852.jpg)
[list to map] collectors Tomap syntax sharing (case practice)

MongoDB 的安装和基本操作
随机推荐
The accept attribute of the El upload upload component restricts the file type (detailed explanation of the case)
1287. Elements that appear more than 25% in an ordered array
"Remake Apple product UI with Android" (3) - elegant statistical chart
Initial test of scikit learn Library
How idea starts run dashboard
App mobile terminal test [4] APK operation
Approval process design
Mongodb installation and basic operation
Function introduction of JMeter thread group
Location of software installation information and system services in the registry
《天天数学》连载56:二月二十五日
【Proteus仿真】8×8LED点阵屏仿电梯数字滚动显示
探索Cassandra的去中心化分布式架构
Mb10m-asemi rectifier bridge mb10m
[system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree
Colab works with Google cloud disk
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (II)
Go语言自学系列 | golang switch语句
阿飞的期望
首发!!lancet饿了么官方文档