Go to Tools>External Tools and choose Add then give it a good title
"NVidia perfHUD". In the Command box, point it to the NVidia perfHUD exe
(not your exe). You will want to pass your exe as an argument, so in
the Arguments box enter $(TargetPath) (no quotes). You will also
probably need to set the Initial Directory to $(TargetDir) or
$(ProjectDir). Then, use the "Move Up" button to move the new tool to
the top of the list. Click Ok.
Now, add it to the Debug toolbar
(where it logically belongs). To do that, go to Tools>Customize...
then from the Categories list (the list to the left) select Tools, then
from the list to the right look for "External Command 1" (it's 1 because
we moved NVidia PerfHUD to the top of the list earlier), then drag it
and drop it on one of the visible toolbars (the Debug toolbar is the
most reasonable choice).
At this point, you can click on the
newly added toolbar item to launch NVidia perfHUD with your exe. But you
will probably want to add a keyboard shortcut to it. To do that, go to
Tools>Options, and from the left select Environment>Keyboard. Now,
in the text box titled "Show commands containing:", enter
ExternalCommand1. This will narrow down the list to one item (which is
the one we need). Then give it an intuitive shortcut (I use Ctrl+Alt+N
and select Global from the "Use new shortcut in:" combo).
Then,
to make it look nice, customize the toolbar button and give it an image
instead of having its title displayed. I recommend you grab the icon
from the NVidia PerfHUD exe, convert it to a bitmap and use that.
原文:
http://my.opera.com/adelamro/blog/2008/06/30/using-nvidia-perfhud-from-within-visual-studio
分享到:
相关推荐
PerfHUDAny是一款工具,它扩展了NVIDIA的PerfHUD功能,允许用户在任何基于Direct3D 9(D3D9)的程序上使用该性能分析工具。PerfHUD是NVIDIA开发的一个强大的图形调试和性能分析工具,主要用于优化DirectX应用程序,...
### NVIDIA 8 系列显卡编程指南知识点详解 #### 一、文档概览与重要声明 本指南针对 NVIDIA GeForce 8 和 9 系列显卡提供了详细的编程指导,适用于希望深入了解显卡编程的开发者。文档发布日期为 2008 年 12 月 19...
- **使用PerfHUD**(2.2.3 Using PerfHUD): - 介绍了如何利用PerfHUD这一工具来监测和分析图形应用程序的性能。 - 详细讲解了PerfHUD的功能特性,如帧速率、GPU利用率等指标的监控方法。 - 通过实际案例展示了...
13. **性能分析与优化**:利用工具如RenderDoc、PerfHUD进行性能分析,找出瓶颈并优化代码。 以上知识点只是高质量实时渲染的冰山一角,实际作业可能涵盖了其中一部分或全部,通过学习和实践,你可以掌握创建令人...
通过对PerfHUD等工具的数据分析发现,尽管游戏中存在大量的材质种类,但CRY引擎通过智能的排序算法实现了非常少的状态切换次数,大大降低了API调用的开销,从而提升了整体渲染效率。这一点在与同类引擎如OGRE和...