Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is DXUT's method of using Nvidia PerfHUD 5.7?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces what DXUT uses Nvidia PerfHUD 5.7method is, the content is very detailed, interested friends can refer to, hope to be helpful to you.

After studying it for a long time, I found a result on the Internet and tried it, which is very OK. The method is to insert the following code on line 3568 of DXUT.CPP:

D3D10_DRIVER_TYPE driver_type = D3D10 driven TYPERPERTHARDARETHARETIC while (pDXGIFactory- > EnumAdapters (adapter_index, & pAdapter)! = DXGI_ERROR_NOT_FOUND) {if (pAdapter) {DXGI_ADAPTER_DESC adapter_desc;if (pAdapter- > GetDesc (& adapter_desc)) {const bool is_perf_hud = (wcscmp (adapter_desc.Description, L "NVIDIA PerfHUD") = = 0); if (is_perf_hud) {driver_type = D3D10 persistent TYPEEREFEREFCENTS;} else {pAdapter- > Release () }} else {pAdapter- > Release ();} + + adapter_index;} pNewDeviceSettings- > d3d10.DriverType = driver_type; so much about what DXUT uses Nvidia PerfHUD 5.7.I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report