当前位置:网站首页>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
- L2-023 graph coloring problem (25 points) (graph traversal)
- Summary of solid problems
- LLVM之父Chris Lattner:编译器的黄金时代
- 企业微信应用授权/静默登录
- Stm32f103zet6 [development of standard library functions] - Introduction to library functions
- Redis Desktop Manager for Mac(Redis可视化工具)
- Enterprise wechat application authorization / silent login
- 【精品】利用动态代理实现事务统一管理 二
- 四张图弄懂matplotlib的一些基本用法
猜你喜欢

Solidity 问题汇总

深度学习框架中的自动微分及高阶导数

Introduction to matlab

L2-022 重排链表 (25 分)(map+结构体模拟)

Yangtao electronic STM32 Internet of things entry 30 step notes IV. engineering compilation and download

ONEFLOW learning notes: from functor to opexprinter

Use of Arthas in JVM tools

php基于哈希算法出现的强弱比较漏洞

2021 Li Hongyi's adaptive learning rate of machine learning

洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
随机推荐
Output first order traversal according to second order and middle order traversal (25 points)
Notes d'apprentissage oneflow: de functor à opexprinterpreter
Failed to prepare device for development
Consensus Token:web3.0生态流量的超级入口
政务中台研究目的建设目标,建设意义,技术创新点,技术效果
Redis Desktop Manager for Mac(Redis可视化工具)
2021李宏毅机器学习之Adaptive Learning Rate
引用传递1
2022-04-22 OpenEBS云原生存储
【原创】使用System.Text.Json对Json字符串进行格式化
valgrind和kcachegrind使用運行分析
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
Learn SQL injection in sqli liabs (Level 11 ~ level 20)
ONEFLOW learning notes: from functor to opexprinter
Enterprise wechat application authorization / silent login
Idea package jar file
Research purpose, construction goal, construction significance, technological innovation, technological effect
使用flask和h5搭建网站/应用的简要步骤
Reference passing 1
Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs











