当前位置:网站首页>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 .
边栏推荐
- Shell script import and export data
- Approval process design
- 用同花顺炒股开户安全吗?
- The mixlab editing team is recruiting teammates~~
- Create gradle project
- The accept attribute of the El upload upload component restricts the file type (detailed explanation of the case)
- Unreal_DataTable 实现Id自增与设置RowName
- 远程办公之大家一同实现合作编辑资料和开发文档 | 社区征文
- Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
- App mobile terminal test [3] ADB command
猜你喜欢

Unreal_DataTable 实现Id自增与设置RowName

How idea starts run dashboard
![[combinatorics] non descending path problem (outline of non descending path problem | basic model of non descending path problem | non descending path problem expansion model 1 non origin starting poi](/img/81/59ed6bebf5d85e9eb71bd4ca261309.jpg)
[combinatorics] non descending path problem (outline of non descending path problem | basic model of non descending path problem | non descending path problem expansion model 1 non origin starting poi

请做好3年内随时失业的准备?
![SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]](/img/3b/7523eca5bbcdbba29d9b7f6e4791a5.jpg)
SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]

半监督学习

Stm32f103c8t6 firmware library lighting

The difference between calling by value and simulating calling by reference

Microservice - declarative interface call openfeign

Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (4)
随机推荐
分布式事务(Seata) 四大模式详解
[redis foundation] understand redis master-slave architecture, sentinel mode and cluster together (Demo detailed explanation)
Mb10m-asemi rectifier bridge mb10m
TCP拥塞控制详解 | 3. 设计空间
[combinatorics] combinatorial identity (sum of variable upper terms 1 combinatorial identity | summary of three combinatorial identity proof methods | proof of sum of variable upper terms 1 combinator
Effect of ARP package on FTP dump under vxworks-6.6 system
阿飞的期望
pycharm错Error updating package list: connect timed out
Stm32f103c8t6 firmware library lighting
远程文件包含实操
Why can't strings be directly compared with equals; Why can't some integers be directly compared with the equal sign
Create gradle project
Persisting in output requires continuous learning
Redis在Windows以及Linux系统下的安装
App mobile terminal test [5] file writing and reading
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (I)
Initial test of scikit learn Library
A Fei's expectation
Microservice - fuse hystrix
《天天数学》连载56:二月二十五日