当前位置:网站首页>Resource packaging dependency tree
Resource packaging dependency tree
2022-04-23 08:51:00 【UWATech】
1) Resource packaging dependency tree
2)Coroutines A lot of GC The problem of
3) Mobile phone terminal Soft Shadow How it works
4)Skybox Environmental lighting problems
This is the first 292 piece UWA Push of technical knowledge sharing . Today we continue to select and develop a number of 、 Optimization related issues , Suggested reading time 10 minute , If you read it carefully, you will get something .
UWA Question answering community :answer.uwa4d.com
UWA QQ Group 2:793972859( The original group is full )
AssetBundle
Q: Want to do inclusion resource analysis , Do you have any good tree display tools or ideas to recommend ? It's OK to have a good open source solution . The simplest is like N Like a fork tree , such as root A file name , Then expand the whole tree structure .
A:Unity Of Treeview, The following is the resource reference dependency Finder ReferenceFinder The screenshots .
The project address is :https://github.com/blueberryzzz/ReferenceFinder
Thank you, Ma San @UWA The Q & a community provides answers
Script
Q: This synergy produces a lot of GC The question of how to locate and where to trigger , How to change it ?

A1: You can try this plug-in to see the specific details of the cooperation process , See if you can locate the problem . There's a CoroutineTracker Dedicated to monitoring the coordination process .
https://github.com/GameBuildingBlocks/PerfAssist
thank Xuan@UWA The Q & a community provides answers
A2: Recommendations are as follows :
- It is not recommended to use a large number of collaborative processes , There will be expenses , May adopt update replace .
- If there is GC, You can look at whether there is a cycle new object , You can use object pool or struct.
thank aladdin@UWA The Q & a community provides answers
A3:yield return new WaitForSeconds(1f);
Writing like this actually produces GC, Think about it new WaitForSeconds(1f) Extract out of function .
Thank you Xiao Xiaojun @UWA The Q & a community provides answers
Rendering
Q: Mobile phone terminal Soft Shadow How it works ?
A: You can refer to UWA Previous blog posts :
《 Use Fast Shadow Receiver Optimize rendering efficiency 》
《 How to achieve a more realistic soft shadow effect 》
If you use Unity Self contained Soft Shadow, Several setting items need to be noted ,Graphics Settings Inside Tier2 You must check Cascaded Shadows, That's how it works CollectShadows Generate ScreenSpace Of Shadowmap.
stay Quality Settings It's set inside Cascade Level It also affects the quality of shadows , The next two pictures are No Cascades and Four Cascades Generated ScreenSpace Shadowmap The effect of .
No Cascades
Four Cascades
thank Xuan@UWA The Q & a community provides answers
Rendering
Q:A scene , adopt additive How to load B scene .2 There are no lights in either scene ( Including directional light )、Reflection Probe, And Enviroment Reflections Of Intensity Mulitiplier by 0, Rely solely on Enviroment Lighting Medium Skybox Lighting .

however SetActive After the second scene , You'll find the lighting black , As shown on the right . again SetActive For the first scene , The ambient lighting is correct , As shown on the left .
If the mode is not Skybox It is Color, There is no such problem . At present, we intend to build our own environmental photosphere harmonic information , Instead of using unity_SHAr related data . Is there any better solution ?
A: When the scene B Set to Active When , Whole Game Of Environment The settings are automatically switched to the scene B The setting of , This time from FrameDebugger You can see that the spherical harmonic coefficient becomes 0 了 . So both models are black .
from Skybox Change to Color, What works is... In the figure below 3 A numerical , They are not 0, So it's not black .
Switching scenes A by Active The rendering effect when , Spherical harmonic coefficients can be obtained , So the effect is normal , Here's the picture .
So I tried the scene B Baking , When there's a LightingData after , Switch to the scene B, The rendering effect is also normal . It's lit because the scene B Original settings Intensity multiplier yes 5, from FrameDebugger Look inside, the spherical harmonic coefficient is not 0 了 , It should be baked LihgtingData It retains the spherical harmonic coefficient .
thank Xuan@UWA The Q & a community provides answers
Today's sharing is here . Of course , There is no end to life but to know . In the long development cycle , The problems you see may be just the tip of the iceberg , We are already in UWA The Q & a website has more technical topics waiting for you to explore and share together . You are welcome to join us , Maybe your method can solve other people's urgent needs ; And he's a mountain “ stone ”, Can also attack you “ jade ”.
Official website :www.uwa4d.com
Official technology blog :blog.uwa4d.com
Official Q & a community :answer.uwa4d.com
UWA School :edu.uwa4d.com
Official technology QQ Group :793972859( The original group is full )
版权声明
本文为[UWATech]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230849572498.html
边栏推荐
- Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
- 单片机数码管秒表
- dataBinding中使用include
- K210 learning notes (II) serial communication between k210 and stm32
- 经典题目刷一刷
- 关于堆的判断 (25 分) 两种插入方式
- Latex mathematical formula
- Redis Desktop Manager for Mac(Redis可视化工具)
- Learn SQL injection in sqli liabs (Level 11 ~ level 20)
- 微信:获取单个标签所有人
猜你喜欢

洋桃电子STM32物联网入门30步笔记二、CubeIDE下载、安装、汉化、设置

Pctp test experience sharing

Use of Arthas in JVM tools

Yangtao electronic STM32 Internet of things introduction 30 steps notes 1. The difference between Hal library and standard library

洋桃电子STM32物联网入门30步笔记三、CubeMX图形化编程、设置开发板上的IO口

请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨

BK3633 规格书
![Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]](/img/67/1f9df4236b0aac3480836d45ab8561.png)
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]

ONEFLOW learning notes: from functor to opexprinter

Reference passing 1
随机推荐
请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨
valgrind和kcachegrind使用運行分析
扣缴义务人
Multi view depth estimation by fusing single view depth probability with multi view geometry
MATLAB入门资料
LLVM之父Chris Lattner:编译器的黄金时代
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
Single chip microcomputer nixie tube stopwatch
是否同一棵二叉搜索树 (25 分)
Basic usage of synchronized locks
Go语言自学系列 | golang结构体指针
Judgment on heap (25 points) two insertion methods
Valgrind et kcachegrind utilisent l'analyse d'exécution
HAL库的RCC简介
Consensus Token:web3. 0 super entrance of ecological flow
After a circle, I sorted out this set of interview questions..
L2-3 浪漫侧影 (25 分)
Kubernetes如何使用harbor拉去私有镜像
Swagger document export custom V2 / API docs interception











