10

有趣的阅读 - 基于数据选择高性能Unity Shader

 3 years ago
source link: https://zhuanlan.zhihu.com/p/162005141
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

有趣的阅读 - 基于数据选择高性能Unity Shader

计算机图形学话题下的优秀回答者


v2-3e4e5e12ae4c934cb5da8c1811fbbc8f_720w.jpg

本文同样是一篇来自Rubén Torres Bonet的文章,在昨天推荐的那篇文章有趣的阅读 - 如何量化分析Unity着色器的性能开销的基础上,作者对Unity中常见的内置Shader以及若干Shader变体进行了量化分析,并将结果整理成了表格。

表格中的数字代表使用Mali Offline Compiler这个工具对现代移动平台使用的OpenGL ES3估算的GPU Circle数量。

而A、LS、V以及T则代表了不同的操作类别,例如算数操作(sum, multiply等等)、存取操作(例如从buffer中读取参数)。

表格中标红的内容是作者认为的性能瓶颈,需要额外关注的优化点。

全文分为以下几个部分:

  • How to Read These Performance Numbers
  • The Cost of Your Shaders
    • UI Default Shader (4 Variants)
    • Sprite Default Shader (4 Variants)
    • Skybox Procedural (3 Variants)
    • Skybox Cubemap (1 Variant)
    • Skybox 6-Sided (1 Variant)
    • Mobile - Particles - Alpha Blended (1 Variant)
    • Mobile - Diffuse (17 Variants)
    • Mobile - Bumped Diffuse (17 Variants)
    • Unlit - Color (1 Variant)
    • Unlit - Texture (1 Variant)
    • Standard Shader (42 Variants)
    • Standard Shader - Specular Setup (42 Variants)
  • Get the Sortable List

原文标题:
Now You Can Choose High-Performing Unity Shaders

文章链接:

I analyzed the cost of several Unity built-in shaders. Here are the results in shader unit cycles​thegamedev.guru图标

http://weixin.qq.com/r/1kORidTELIlTrZDq9xbE (二维码自动识别)

v2-c46eaeb7ecbeda51ed0f1ad0f28e42fb_b.jpg



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK