当前位置:网站首页>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 )
边栏推荐
- How much do you know about the cause of amplifier distortion?
- Reasons for the failure of digital transformation and the way to success
- Crud+ form verification for spa project development
- shell(34) : 时间
- [chess life] 01 life is like chess
- R language data preprocessing, converting type variables into factor variables, converting data sets into H2O format, and dividing data sets (training set, test set, verification set)
- 立体渲染
- Pycharm configuring remote connection server development environment
- RapidEye快鸟、SPOT卫星遥感影像数据
- Several soapdatamodules on Delphi soap WebService server side
猜你喜欢
![[ROS introduction] cmakelist Txt and packages XML interpretation](/img/37/24ce4be244ea56c2c84342492fccd4.png)
[ROS introduction] cmakelist Txt and packages XML interpretation

Eureka服务注册与发现

Reinforcement learning weekly (issue 50): saferl kit, gmi-drl, rp-sdrl & offline meta reinforcement learning

【论文解读】关于基于视觉无人机自主降落平台的论文梳理
![[GWCTF 2019]mypassword XSS](/img/26/3611fd5aae21ea004dcfcc2c623328.png)
[GWCTF 2019]mypassword XSS
![[GWCTF 2019]mypassword XSS](/img/26/3611fd5aae21ea004dcfcc2c623328.png)
[GWCTF 2019]mypassword XSS

In a frame because it set 'X-FRAME-OPTIONS' to' deny '

The method of making videos of knowledge payment system support m3u8 format playback
Task cache compilation caused by gradle build cache

How to use the data dictionary function in the low code platform of the Internet of things?
随机推荐
【MAVROS】MAVROS 啓動指南
KDD'22 | 阿里: 基于EE探索的精排CTR预估
Es total number of data queried by criteria
Grafana report display of sentinel based high availability current limiting system
leetcode. 11 --- container with the most water
[ongoing update...] 2021 National Electronic Design Competition for college students (III) interpretation of the anonymous four axis space developer flight control system design
Live broadcast forecast the sixth issue of the webinfo lecture hall of the China Information Association will be broadcast on June 24
Implementation of depth traversal adjacency matrix of figure 6-5
liunx 安装mysql
立体渲染
What are the indicators, dimensions and models in Business Intelligence BI data warehouse?
Basic MySQL database operations
Atcoder abc256 full problem solution (interval merging template, matrix fast power optimization DP, line segment tree...)
Why is yuancosmos so popular? Is the 10trillion yuan shouted by the market boasting or the truth?
【象棋人生】01 人生如棋
≥ server2012r2 system, disable some planned tasks of the system
Registration of spa project development
新捷途X70S上市8.79万起,空间安全越级,不愧是网红国民大7座SUV
Lua -- iterator, module, meta table
v-if和v-for哪个优先级更高?
