代码改变世界

随笔档案-2020年04月

unity渲染性能优化

2020-04-29 14:10 by kk20161206, 1058 阅读, 收藏, 编辑
摘要: cpu bound还是gpu bound cpu bound:渲染task可能分布在多个线程,叫做多线程渲染。主线程、渲染线程、worker线程。主线程包含一些渲染的任务。渲染线程发送命令给gpu。worker线程执行一些单独的任务,裁剪、mesh skin等。但不同目标也可能不同。 哪个task是 阅读全文

unity定位瓶颈

2020-04-29 10:46 by kk20161206, 511 阅读, 收藏, 编辑
摘要: 定位是脚本问题还是渲染问题:https://learn.unity.com/tutorial/diagnosing-performance-problems#5c7f8528edbc2a002053b598 帧率 fps,毫秒。 知道哪些耗时较长比较关键。 哪些部分降低帧率则优化那部分。 记录pro 阅读全文

unity shader矩阵相关优化

2020-04-18 17:07 by kk20161206, 548 阅读, 收藏, 编辑
摘要: https://chengkehan.github.io/MulOptimizing.html 总结:推荐用o.vertex = UnityObjectToClipPos(v.vertex); 而不是o.vertex = mul(UNITY_MATRIX_MVP, v.vertex); 因为后者会拆 阅读全文

Adreno 505 角色不显示问题

2020-04-18 17:02 by kk20161206, 409 阅读, 收藏, 编辑
摘要: We are currently testing our project on our dev-kits, one of which is Adreno 505. And it confuses us a lot that whenever we use unity_ObjectToWorld in 阅读全文

trailRenderer

2020-04-09 16:15 by kk20161206, 129 阅读, 收藏, 编辑
摘要: https://wiki.unity3d.com/index.php/MeleeWeaponTrail http://www.pixelvex.com/gamedev/trails http://codeflow.org/entries/2012/aug/05/webgl-rendering-of- 阅读全文

unity colorMask问题

2020-04-09 16:11 by kk20161206, 373 阅读, 收藏, 编辑
摘要: colorMask写入深度,在某些机型上好像有问题,无法显示。比如三星 s7. 阅读全文

一篇bezier曲线描述很清晰的文章

2020-04-07 22:07 by kk20161206, 322 阅读, 收藏, 编辑
摘要: https://javascript.info/bezier-curve Bezier curve Bezier curves are used in computer graphics to draw shapes, for CSS animation and in many other plac 阅读全文
点击右上角即可分享
微信分享提示