Code Monkey home page Code Monkey logo

particleeffectprofiler's Introduction

996.icu

ParticleEffectProfiler

Unity 特效性能分析工具

Image text

简介:

该分析工具,主要是把特效的几个重要指标:内存、DrawCall、粒子数量、overdraw等数据显示在scene上,方便美术直接查看,并根据相关内容作出优化。
Image text

使用:

Image text
右键特效预设,并点击--测试,(会自动添加ParticleEffectScript脚本,并运行Unity)

ParticleEffectScript脚本:

会记录Overdraw、DrawCall、粒子数量这三个数据,并可以以折线图的形式展示。
折线图内一个点代表一帧,如果没有勾选循环,则默认会记录3秒的数据,一秒30帧,会记录90个点。
如果是循环特效,就勾选循环,数据会不断记录,但显示的长度默认是90个点,可以在代码里修改。
Image text

无法自动裁剪(automic culling):

Image text
由于特效的制作过程中,会使用一些非线性的运算,使得Unity无法实时获取到粒子的位置,会导致超出摄像机的粒子无法进行自动裁剪,所以在面板统一显示方便查看。
Image text
但这里的还不够全面,有部分无法自动裁剪的没法判断,因为有部分属性无法访问,有兴趣的可以反编译UnityEditor.dll,搜索UpdateCullingSupportedString这个函数进行了解。

摄像机:

进行测试特效的时候,会修改摄像机的shader, 显示成类似Scene视图的Overdraw模式。

支持:

Unity5.x 和 Unity2017.x

License

This library is under the MIT License.

感谢 狂飙建议

particleeffectprofiler's People

Contributors

sunbrando avatar networm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.