Intel® Graphics Performance Analyzers (GPA) 图形优化

/

Intel的GPA支持不同的平台,比如,配备了高端GPU的平台上,我们拿到一款游戏,如果它只能跑到30帧每秒(FPS),我们希望通过这个工具能把它变成60帧或者更高;主流的显卡原来只能跑到5帧、10帧,我们希望通过优化可以跑到30帧或者更高;对于安卓平台上的游戏,我们也希望通过优化,达到30帧、60帧或者更高。

GPA使用的是主机/目标的架构,我们使用一台主机系统,一个目标系统,主机系统就是安装Intel GPA工具的这台机器;目标系统可能是个平板电脑或者另外一台PC的机器,或者我们也可以把主机和目标平台都放在同一台机器上。

大家可以看一下 GPA支持的平台,主机系统可以是Windows,从Win7到Win10的各个版本,Mac OSX以及UbuntuLinux发行版。而目标平台支持Windows, 安卓和Ubuntu。硬件支持情况,大家请参考PPT的内容。

最左上角的 Graphics Monitor是桌面平台的应用程序,用来侦听本地的应用程序,你可以用这个工具直接启动你的EXE,就可以捕获到你应用调用图形API的情况。 System Analyzer主要是用HUD直接显示在EXE的图形程序画面上,在整个游戏画面之上覆盖一层帮助信息。 PlatformAnalyzer则主要是分析CPU线程、CPU/GPU并行度等情况。

大家可以看到,GPA现在的版本已经支持对DirectX 12应用程序的分析。你可以从两个地方启用对DirectX12的支持。这个System Analyzer可以让我们实时地看到当前目标机器、目标硬件上你的游戏或者应用程序运行的情况。比如说你关心CPU的情况、能耗的情况、IO读写情况,或是网络的情况、GPU的负载情况,都可以从左边直接拽一个性能指标过来。GPA还允许把分析的结果另存为CSV文件,这样开发者可以进一步分析和使用这些数据。

我们开发一个图形应用程序,很多时候会有性能瓶颈,但不知道这个性能瓶颈在哪里。 我们可以在GPA中实时地进行实验。可能是你的贴度太大了,用的大小是1024或者更高的。我们可以在GPA中把所有贴图变成2×2,两个像素乘以两个像素,这样GPU端的Sampler压力就小多了,也许一打开这个实验就会发现帧率就上去了。或者可能我们的iOS上性能是好的,可是在部分安卓机器上发现慢了,尤其当你使用了复杂的Shader(着色器代码),比如用了PBR(基于物理的渲染),你就可以做实验把片断着色器代码变得非常简单,这样就可以发现潜在的性能瓶颈。

/

Get Started with Intel® Graphics Performance Analyzers (Intel® GPA)

Test: Use this documentation to get started with Intel® Graphics Performance Analyzers (Intel® GPA), which is a toolset for graphics performance analysis and optimization of games and other graphics-intensive applications. Intel® GPA is available on Windows* and Ubuntu* hosts.

For Chinese version of this document, refer to Get Started with Intel® Graphics Performance Analyzers - Simplified Chinese.

Download Intel GPA

To download Intel GPA, visit the download page. For installation instructions, refer to Install and Launch Intel® GPA.

Supported Graphics APIs

API

Windows Host

Ubuntu Host

Microsoft DirectX*

yes

N/A

Vulkan*

yes

no

OpenGL*

yes*

yes

OpenCL™

yes*

no

Intel® Media SDK

yes*

no

Intel® oneAPI Video Processing Library (oneVPL)

yes*

no

*on Windows OS, OpenGL, OpenCL, Intel® Media SDK, and oneVPL support is limited to Trace mode.

For details on software and hardware requirements for Intel® GPA, see the product Release Notes.

Understand the Workflow

Intel GPA includes four tools:

  • Use Graphics Monitor as a starting point: navigate to your application, configure options, capture frame, stream, and trace files, launch real-time analysis.
  • With System Analyzer, analyze CPU, GPU, and graphics API metrics in real time.
  • With Graphics Trace Analyzer, analyze graphics application execution on the CPU and GPU.
  • With Graphics Frame Analyzer, analyze streams and frames, including API calls and graphics resources.

To get started with Intel GPA, you can deep dive into the tool you are interested in, or follow the general workflow:

//

///

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值