位置: 编程技术 - 正文

Unity3D - 图形性能优化:帧调试器(unity地形图片)

编辑:rootadmin
Unity官方文档之“图形性能优化-帧调试器”的翻译,E文链接。Frame Debugger 帧调试器

推荐整理分享Unity3D - 图形性能优化:帧调试器(unity地形图片),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:unity图形化编程,unity地形图片,unity地形图片,unity图形化编程,unity自带的图形系统,unity图形界面,unity3d图形学,unity图形界面,内容如对您有帮助,希望把文章链接给更多的朋友!

The Frame Debugger lets you freeze playback for a running game on a particular frame and view the individual draw calls that are used to render that frame. As well as listing the drawcalls, the debugger also lets you step through them one-by-one so you can see in great detail how the scene is constructed from its graphical elements.

帧调试器可以让你冻结回放运行中游戏的某一帧,然后看那一帧渲染的draw calls。和列出draw calls一样,帧调试器也允许你逐帧调试,所以你可以看到场景如何从它的图形元素构建的大量细节。

Using the Frame Debugger 使用帧调试器

The Frame Debugger window (menu: Window > Frame Debugger) shows the drawcall information and lets you control the “playback” of the frame under construction.

帧调试器窗口(菜单:窗口 > 帧调试器)显示drawcall信息,并且允许你控制构建过程帧的“回放”。

The main list shows the sequence of drawcalls (and other events like framebuffer clear) in the form of a hierarchy that identifies where they originated from. The panel to the right of the list gives further information about the drawcall such as the geometry details and the shader used for rendering.

主列表以资源最初的组织结构&#;式显示drawcalls序列(和其它事件比如帧缓冲清除),列表右侧的板面显示了关于drawcall更详细的信息,比如几何细节和渲染使用的着色器。

Clicking on an item from the list will show the scene (in the Game view) as it appears up to and including that drawcall. The left and right arrow buttons in the toolbar move forward and backward in the list by a single step and you can also use the arrow keys to the same effect. Additionally, the slider at the top of the window lets you “scrub” rapidly through the drawcalls to locate an item of interest quickly. Where a drawcall corresponds to the geometry of a GameObject, that object will be highlighted in the main Hierarchy panel to assist identification.

点击列表中的一个条目,会(在游戏视图中)随着它的出现显示场景和它的drawcall。工具栏中的左右箭头按钮可以前向或后向选中列表中的条目,使用键盘上的方向键也可以。此外,窗口顶部的滚动条可以让你快速的略过drawcalls定位感兴趣的条目。当一个drawcall对应于一个物体的几何元素时,这个物体在列表面板的资源标识符会高亮。

If rendering happens into a RenderTexture at the selected draw call, then contents of that render texture are displayed in the Game View. This is useful for inspecting how various off-screen render targets are built up, for example diffuse g-buffer in deferred shading:

如果选中的drawcall是渲染到纹理(RenderTexture),游戏视图中会显示渲染纹理的图像。这对于检查各种离屏渲染目标如何创建有用,比如延迟着色的散射物体缓冲(g-buffer,Geometry Buffer)。

Or looking at how the shadow maps are rendered:或者看看如下,阴影是如何被渲染的:

Render target display options 渲染目标显示选项Unity3D - 图形性能优化:帧调试器(unity地形图片)

At the top of the information panel is a toolbar which lets you isolate the red, green, blue and alpha channels for the current state of the Game view. Similarly, you can isolate areas of the view according to brightness levels using the Levels slider to the right of these channel buttons. These are only enabled when rendering into a RenderTexture.

信息面板的顶部是一个工具栏,允许你分离游戏视图当前状态的红、绿、蓝和透明通道。同样的,你可以使用通道按钮右边的等级滑动条来根据亮度等级分离视野区域。只有渲染到纹理时才能这样。

When rendering into multiple render targets at once you can select which one to display in the game view. Shown here are the diffuse, specular, normals and emission/indirect lighting buffers in 5.0 deferred shading mode, respectively:

当一次渲染到多个渲染目标时,你可以选择在游戏视图中显示哪一个。下面的视图分别是Unity 5.0延迟着色模式的散射、镜面反射、法线和发射或非直线光:

Additionally, you can see the depth buffer contents by picking “Depth” from the dropdown:

此外,你可以通过选择下拉菜单的“深度”看到深度缓存内容:

By isolating alpha channel of the render texture, you can see occlusion (stored in RT0 alpha) and smoothness (stored in RT1 alpha) of the deferred g-buffer:

通过分离渲染到纹理的透明通道,你可以看到延迟g-buffer的闭合(RT0透明通道中)和平滑(RT1透明通道中):

The emission and ambient/indirect lighting in this scene is very dark; we can make it more visible by changing the Levels slider:

这个场景中的发射光和环境光很暗,我们可以通过滑动等级滚动条让它更能被看清楚:

Alternative frame debugging techniques 其它可供选择的帧调试技术:

You could also use external tools to debug rendering. Build a standalone player, run it through Visual Studio graphics debugger, Intel GPA, RenderDoc, NVIDIA NSight orAMD GPU PerfStudio, then capture a frame of rendering, and step through the draw calls and other rendering events to see what’s going on.

你也可以使用外部的工具调试渲染。打一个独立播放包,用Visual Studio图形调试器、Intel GPA、RenderDoc、NVIDIA NSight或AMD GPU PerfStudio运行,然后抓取渲染的一帧,并且逐步调试draw calls和其它渲染事件看看发生了什么。

This is a very powerful approach, since these tools can provide you with a lot of information to really drill down.

因为这些工具提供了真正穿过每个draw call的很多信息,所以是很强大的。

Unity3d使用socket传输图片 C#socket通信只能传输的字节流,所以我们若是想利用socket传输任何东西,都必须将之以字节的形式进行传输So本文就抛砖引玉一下,以传输图片的形式来

Unity3d linux下获取焦点,控制窗口方法 Unity3d自身的API没有提供给我们窗口控制,获取焦点的方法。Windows下的方法大家很容易找到很多相关的实例,其核心思想是调用Win的API获取窗口控制。

Unity3D触摸操作 Unity3D中,NGUI中的UICamera为UI按钮提供了非常方便的触控接口,onClick,onDrag,onPress。那3D场景中的物体是否可以使用?可以。在场景摄像机MainCamera上,添加

标签: unity地形图片

本文链接地址:https://www.jiuchutong.com/biancheng/382523.html 转载请保留说明!

上一篇:Unity3d 调用Android震动(unity接入安卓sdk)

下一篇:Unity3d使用socket传输图片(unity socket udp)

  • 计提所得税分录计提的时候金额比实际缴纳多
  • 临时税务登记的小规模纳税人 个人所得税如何申报
  • 固定资产大修理的标准
  • 兼职会计负责的工作内容
  • 留抵税额账上比申报表多280
  • 哪些发票能做公章
  • 410768金税盘
  • 旧公司库存如何管理
  • 顺流交易为什么不管是否出售
  • 收到基金计入什么科目
  • 财务报表层次重大错报风险增大了认定层次
  • 农业水费管理使用办法
  • 新建账套应收账款怎么填客户
  • 抵债的货物按什么算增值税
  • 已经建立了某个公司
  • 如何查询当月社保和公积金是否缴纳
  • 金穗开发票时怎样添加商品?
  • 免税单位无租使用纳税单位土地
  • 小微企业免征增值税条件
  • 不开票收入是怎么回事
  • 收到工程发票如何做账
  • 苹果电脑mac系统怎么升级
  • mac big sur 新功能
  • thinkphp5框架介绍
  • php实现微信发红包的方法
  • 退回多收款项开具发票原发票需要退回吗
  • ahqinit.exe是什么进程 ahqinit是安全的进程吗
  • msg0.db是什么文件
  • nodejs解压
  • 水培吊兰的养殖周期
  • 股东增资是不是利好
  • 换出长期股权投资的会计处理
  • php图片上传插件
  • 退教育附加税会计分录
  • 基于改进yolov4论文
  • 用pullout造句
  • 公司注销开户行需要注销吗
  • 劳动仲裁支付的赔偿金怎么入账
  • 税务维护费抵扣分录
  • mysql5.5命令
  • 房产税和城镇土地使用税需要计提吗
  • 增值税发票抵扣联的作用
  • 增值税出口免税不退税
  • 珊瑚虫怎么变成珊瑚的
  • 固定资产资本化后续支出
  • 加工企业怎么做账务处理
  • 可供出售金融资产新准则叫什么
  • 股权转让是否需要全体股东签字
  • 印花税申报成功未扣款还能更正吗
  • 路桥费能抵扣增值税吗
  • 加油预付卡销售 IC卡充值
  • 用友t3计提折旧了没有生成凭证
  • 办公室装修费用怎么入账
  • 股东追加投资如不追加会怎样
  • 税票名称开错了有影响么
  • 收到对方红字发票信息表怎么处理
  • 修缮服务指什么
  • 进口货物只有报关单能入账吗
  • 滴滴发票抬头是什么意思
  • 无形资产的研发支出
  • mysql5.7.
  • linux如何安装c语言编译器
  • sqlserver数据备份恢复
  • sqlserver正则表达式替换列
  • sqlserver的基本语句
  • win7旗舰版系统恢复
  • Windows 2003 SP2 简体中文版下载地址
  • Gene6 FTP在windows 2008上面破解后无法启动解决方法
  • windows7的常用菜单
  • win10系统设备管理器没有蓝牙
  • svn怎么切换用户名
  • win10应用商店更新软件更新不了
  • windows xp windows
  • ireike.exe - ireike是什么进程 有什么作用
  • unity outline性能
  • ExtJS4 表格的嵌套 rowExpander应用
  • 对qucik cocos2dx lua SocketTCP的再一次封装,导入全局实例,包含自定义事件
  • opengl出错
  • python入坑指南
  • 电子税务局房产税税源信息采集
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设