02 2023 档案

摘要:DynmaicBone最新版本使用了多线程,30人同屏情况下消耗为6ms左右,如下图: 这个消耗依旧挺大,会使50帧的游戏降10帧左右。 使用 job system + burst 优化后的消耗为 0.05 ms,如下图: 优化方案参考如下: https://blog.csdn.net/tangyi 阅读全文
posted @ 2023-02-25 15:29 孤独の巡礼 阅读(485) 评论(0) 推荐(0) 编辑
摘要:关于Burst,看下官方介绍: Burst is a compiler that you can use with Unity's job system to create code that enhances and improves your application's performance. 阅读全文
posted @ 2023-02-23 13:42 孤独の巡礼 阅读(483) 评论(0) 推荐(0) 编辑
摘要:缩放uv算法代码如下: 1 half2 ScaleUVsByCenter(half2 uv, float scale) 2 { 3 float2 center = float2(0.5, 0.5); 4 return (uv - center) / scale + center; 5 } 转载请注明 阅读全文
posted @ 2023-02-15 11:09 孤独の巡礼 阅读(213) 评论(0) 推荐(0) 编辑
摘要:半透明物体的阴影现实中也应该是淡化过的,如何实现这种效果? 渲染方案:使用内置的noise贴图来clip阴影。 代码可参考: float4 vpos = input.positionCS; half alphaRef = SAMPLE_TEXTURE3D(_DitherMaskLOD,sampler 阅读全文
posted @ 2023-02-13 20:10 孤独の巡礼 阅读(599) 评论(0) 推荐(0) 编辑