当前位置:网站首页>Some shaders in AB package do not trigger the callback of ipreprocessshaders
Some shaders in AB package do not trigger the callback of ipreprocessshaders
2022-06-22 22:38:00 【UWATech】
1)AB Packed yes Shader There is no trigger IPreprocessShaders The callback
2) There are many lights in the scene, resulting in a large number of non batch particle systems
3) obtain Android and iOS Unique identifier of the device
4) Used Variant Of AB The resources in the package will be judged as redundant
This is the first 302 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 )
Shader
Q: stay Addressable It's packed inside AB, Among them Shader Packaging does not trigger IPreprocessShaders The callback inside , What's the reason, please ?
A: Already packaged when incremental packaging Shader This callback will not be triggered , Only the newly packed Shader Will . Whether it's Addressable Packaging or other packaging methods are similar . If you need to pass IPreprocessShaders To carry out Shader Variant culling , Then it is recommended to pack the whole package again , Or set when packaging ForceRebuild.
Thank you Zong Huixuan @UWA The Q & a community provides answers
Rendering
Q: How many lights are there in the scene , This has led to a large number of non batches of the particle system , How to optimize ?
A: Tested it , stay 2019.4.14 In the version , If multiple lights “ influence ” To the particle system , It will indeed lead to the ParticleSystem Can't be approved together , Although the rendering itself will not be right ParticleSystem Have a real impact . stay 2020.3.17 and 2021.3.4 There is no such problem in the version . For not 2020 And above Unity, Need to adjust Light Of CullingMask, Don't let it be right ParticleSystem Where Layer An impact , Then we can get the approval together . For example, particle effects in TransparentFX layer , Of the light source CullingMask This one is not included Layer that will do .
thank [email protected] The Q & a community provides answers
Android
Q: Ask for Android and iOS The unique identifier of the device .
A1:Android There is access to IMEI The interface of . If iOS 15 Future device settings do not track , At present, it is impossible to obtain the unique device ID Of , You have to get it from other hot cloud plug-ins .
thank [email protected] The Q & a community provides answers
A2:Android It's using OAID perhaps UUID.iOS Use IDFA. It will refresh when you brush the machine or restore the factory settings ID, Some hardware level devices ID, stay iOS 5.0 The above is not allowed to obtain ,Android It is not recommended to use in higher versions .
Thank you @UWA The Q & a community provides answers
A3: Supplement the scheme upstairs , There are two ways :
- Under primary conditions ,Android have access to UUID The way ,iOS Use what you said upstairs IDFA, But you need to make your own compatible adaptation .
- Can use SDK, obtain SDK Of OpenID. This is reliable and stable , The advantage is that no compatible platform is required , But you need access to SDK.
Thanks to Liao Wuxing @UWA The Q & a community provides answers
AssetBundle
Q: Use UWA AssetBundle Testing services , Found that some used Variant Of AB The resources in the package will be judged as redundant , yes Bug Do you ?
A: Use Variant Way to pack AB in , Resources with identical resource names will generate identical Guid, To implement its function as a resource variant , It can be replaced as needed when loading , It is generally believed that Guid The same resource is the same resource , Therefore, it may be this reason that leads to the misjudgment of redundancy . You can change the resource name or not Variant Try packing in the same way .
Thank you Zong Huixuan @UWA The Q & a community provides answers
The cover map comes from the Internet
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 )
边栏推荐
- 《强化学习周刊》第50期:SafeRL-Kit、GMI-DRL、RP-SDRL & 离线元强化学习
- [database] SQL Server quickly creates tables to simulate departments, courses, teachers, students and scores
- shell(34) : 时间
- sitl_ gazebo/include/gazebo_ opticalflow_ plugin. h:43:18: error: ‘TRUE’ was not declared in this scope
- liunx 安装mysql
- Mask image modeling for self supervised representation pre training: CAE and its relationship with Mae and Beit
- 自助圖書館系統-Tkinter界面和openpyxl錶格綜合設計案例
- R language builds a binary classification model based on H2O package: using H2O GLM constructs regularized logistic regression model and uses H2O AUC value of AUC calculation model
- 注意|24日截止 2022年广东二级造价工程师准考证打印入口开通
- Eureka service registration and discovery
猜你喜欢
![[interpretation of the paper] sort out the papers on the vision based autonomous landing platform of UAV](/img/a5/bfa011c961b8f05348f9905fe3d996.png)
[interpretation of the paper] sort out the papers on the vision based autonomous landing platform of UAV
![[Li mu] how to read papers [intensive reading of papers]](/img/86/4894bdef31d47d3f9bf3206b997eed.jpg)
[Li mu] how to read papers [intensive reading of papers]

Why do you perform performance tests before the software goes online? How to find a software performance testing organization

大不列颠泰迪熊加入PUBG 手游

Dragon City in Europe | National Geographic the most romantic and safe destination in the world

liunx 安装mysql
![下一个排列[发挥主观能动性发现规律]](/img/bb/262e1a21e4babb8d221d737ced3bcc.png)
下一个排列[发挥主观能动性发现规律]

注意|24日截止 2022年广东二级造价工程师准考证打印入口开通

新捷途X70S上市8.79万起,空间安全越级,不愧是网红国民大7座SUV

Is it bad for NFT that the market starts to cool down?
随机推荐
Cryptography series: certificate format representation of PKI X.509
[interpretation of the paper] sort out the papers on the vision based autonomous landing platform of UAV
How much do you know about the cause of amplifier distortion?
【几何法视觉】4.2 分段线性变换
Reinforcement learning weekly (issue 50): saferl kit, gmi-drl, rp-sdrl & offline meta reinforcement learning
[GWCTF 2019]mypassword XSS
shell(34) : 時間
[mavros] mavros startup Guide
Es total number of data queried by criteria
Mysql database DQL query operation
Makefile:1860: recipe for target ‘cmake_check_build_system‘ failed make: *** [cmake_check_build_syst
Redis-分布式锁
Total number of combinations [standard backtracking + backtracking techniques -- reducing stack depth]
Mask image modeling for self supervised representation pre training: CAE and its relationship with Mae and Beit
Reasons for the failure of digital transformation and the way to success
Uniapp applet mall develops thinkphp6 points mall, group purchase and seckill packaged app
PMP Exam admission ticket problems and precautions in June, which must be read by candidates
新捷途X70S上市8.79万起,空间安全越级,不愧是网红国民大7座SUV
What are the methods of software stress testing and how to select a software stress testing organization?
The required reading for candidates | PMP the test on June 25 is approaching. What should we pay attention to?
