unity 后处理优化——初文

https://blog.csdn.net/uwa4d/article/details/82666434
https://www.cnblogs.com/jaffhan/p/7643068.html
https://cloud.tencent.com/developer/news/312669
https://zhuanlan.zhihu.com/p/39850106
https://github.com/Unity-Technologies/PostProcessing/tree/v1
https://docs.unity3d.com/Packages/[email protected]/manual/index.html

一、OnRenderImage的性能
在我们看到额后处理教程或者后处理插件中,通常的处理方式是OnRenderImage方法中处理后处理。
https://forum.unity.com/threads/post-process-mobile-performance-alternatives-to-graphics-blit-onrenderimage.414399/

在这里插入图片描述
也就是在OnPreRender中,将RenderTexture赋值给Camera, 在OnPostRender中处理后处理渲染。
通过这种方案能大幅度减少掉帧。

发布了616 篇原创文章 · 获赞 96 · 访问量 33万+

猜你喜欢

转载自blog.csdn.net/wodownload2/article/details/104415303