当前位置:网站首页>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
边栏推荐
- GUI编程简介 swing
- 增强现实技术是什么?能用在哪些地方?
- The K neighbors of each sample are obtained by packet switching
- Study notes of deep learning (8)
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- 资源打包关系依赖树
- STM32使用HAL库,整体结构和函数原理介绍
- Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
- rembg 分割mask
- Anonymous type (c Guide Basics)
猜你喜欢

1099 establish binary search tree (30 points)

After a circle, I sorted out this set of interview questions..

LaTeX论文排版操作

Introduction to matlab

Idea package jar file

The K neighbors of each sample are obtained by packet switching

MATLAB 画五星红旗

Notes d'apprentissage oneflow: de functor à opexprinterpreter

K210 learning notes (II) serial communication between k210 and stm32

爬虫使用xpath解析时返回为空,获取不到相应的元素的原因和解决办法
随机推荐
在sqli-liabs学习SQL注入之旅(第十一关~第二十关)
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
OneFlow學習筆記:從Functor到OpExprInterpreter
Chris LATTNER, father of llvm: the golden age of compilers
洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
Consensus Token:web3.0生态流量的超级入口
请问中衍期货安全靠谱吗?
The K neighbors of each sample are obtained by packet switching
是否同一棵二叉搜索树 (25 分)
玩转二叉树 (25 分)
1099 establish binary search tree (30 points)
Flink同时读取mysql与pgsql程序会卡住且没有日志
求简单类型的矩阵和
L2-023 graph coloring problem (25 points) (graph traversal)
OneFlow学习笔记:从Functor到OpExprInterpreter
cadence的工艺角仿真、蒙特卡洛仿真、PSRR
GUI编程简介 swing
L2-024 部落 (25 分)(并查集)
Download and install bashdb
Brief steps to build a website / application using flash and H5











