博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Unity 5.4 测试版本新特性---因吹丝停
阅读量:5300 次
发布时间:2019-06-14

本文共 2955 字,大约阅读时间需要 9 分钟。

原文:http://blogs.unity3d.com/2016/03/15/enhanced-visuals-better-performance-and-more-the-unity-5-4-public-beta-is-ready/

有三个点我觉得很有意思:

1.Better multithreaded rendering

The Unity 5.4 beta release takes our multithreaded rendering support to the next level. Depending on your project and what platform you’re building to, it can significantly improve your frame rate.

Building on the work we did to take particles, sprites, flares, halos, lines and trails off the main thread in Unity 5.3, we’ve introduced parallel command list generation. Instead of building one graphics command list on the same CPU core scripts, physics and other systems are using, it moves the work to multiple CPU cores, removing some potential bottlenecks and enabling many complex scenes to run faster.

 

5.4将粒子、精灵、光晕、lineRender、拖尾都剥离出主线程,引入了并行的支持。

 

2.Fewer draw calls with GPU instancing

Fewer draw calls means better performance, and, by gradually rolling out GPU instancing support, we’re allowing you to render vast numbers of identical geometries that share the same materials with very few draw calls. Initially GPU instancing support is available for Windows PC builds with DX11 and Shader Model 4.0 and OS X with OpenGL 4.1 and up. More platforms are in the pipeline, so stay tuned.

 

 
 

The scene contains 3 types of rock mesh. Each rock is tinted with a different gray scale color using a material property block. The first scene uses an instanced version of the standard shader, the second scene uses the built-in standard shader. The data is captured with 5.4 beta 8 on Windows / D3D11, with an Intel Core i7-4980HQ@2.8GHz CPU & an nVidia GeForce GT 750M GPU.

 

使用GPU实例化来减少drawCall

相关资料:

 

3.Improved base graphics features: texture arrays, compute shaders and more

If you’re a graphics programmer building your own shaders, 2D Texture Arrays can help you when you’re optimizing large scenes and implementing rendering systems generally. They work by allowing the GPU to treat 2D textures that share the same size and format as a single object.

We’ve also improved a series of low-level graphics features in this release. Compute shaders can now be chained together via DispatchIndirect, compute buffer counters have been improved, and debug information can be used for compute shader debugging. Fast texture copies can be done with a new CopyTexture function, and proper support for uniform arrays as shader parameters has been added. On Metal, OpenGL and D3D9 platforms, we’ve implemented Alpha-to-coverage, and on iOS we now support multi-threaded rendering when using Metal graphics. Finally, image effects can be applied on a scene view camera with a newImageEffectAllowedInSceneView attribute.

Collectively, we think all of these small improvements will be very useful for improving your rendering pipelines.

 

在Metal,OpenGL ,D3D9 实现来Alpha-to-coverage,相关资料:

很好奇如何使用这个特性,查阅了文档发现:

ShaderLab中增加了AlphaToMask On,可以开启这个功能,这个命令是5.3加入的

转载于:https://www.cnblogs.com/wonderKK/p/5502612.html

你可能感兴趣的文章
ios蓝牙详解
查看>>
安装MySQL5.7.18遇到的坑
查看>>
React Native在Android平台运行gif的解决方法转载
查看>>
Mybatis RowBounds 是逻辑分页
查看>>
Nginx缩略图和Fastdfs整合以及image_filter配置,7点经验结论和5个参考资料
查看>>
hdu 3341(ac自动机+状态压缩)
查看>>
hdu 1565(状态压缩基础题)
查看>>
51单片机之蓝牙遥控小车_效果展示+单片机知识+完整蓝牙电车代码
查看>>
使用WNMP时报的错
查看>>
扩展Django内置的auth模块代码示例
查看>>
Sql Server中REPLACE函数的使用
查看>>
hdu 5614
查看>>
SqlServerl的行转列
查看>>
《信息安全系统设计基础》第三周问题总结
查看>>
nextInt()和nextLine()一起使用时的注意点
查看>>
java如何获取一个对象的大小【转】
查看>>
MobilePhone正则表达式
查看>>
linux时间同步,ntpd、ntpdate
查看>>
2017年3月17日上午日志
查看>>
JavaScript跨域总结与解决办法
查看>>