IDXGIDevice3 :: Trim失败3.8要求(WACK Perf测试失败) [英] IDXGIDevice3::Trim fails 3.8 requirement (fails WACK Perf Test)

查看:69
本文介绍了IDXGIDevice3 :: Trim失败3.8要求(WACK Perf测试失败)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


从Windows 8.1开始,无法获得我的任何应用程序(Direct3D应用程序)的认证。他们都在Windows ACK中未通过Perf测试。应用程序通过我的Surface RT Perf测试(这是你可以拥有的最慢的Windows 8.1设备)和
应用程序需要1秒才能加载。奇怪的事情。
Since Windows 8.1, it is impossible to get certified any of my apps (Direct3D app). They all failed the Perf test in the Windows ACK. Weird thing that the app pass on my Surface RT Perf test (which is the slowest Windows 8.1 device you can have), and the app takes like 1 seconds to load.

推荐答案

Trim给出了direct3d在挂起模式下使用的内存以帮助提高性能。

Trim gives back memory used by direct3d while in suspend mode to help with performance.

你只需要为win 8.1修剪

You need trim only for win 8.1

实现起来并不难。

#include "DXGI1_3.h"



	IDXGIDevice3 * pDXGIDevice;
	if (FAILED(dxgiDevice->QueryInterface(__uuidof(IDXGIDevice3), (void **) &pDXGIDevice)))
		return;


	pDXGIDevice->Trim();


这篇关于IDXGIDevice3 :: Trim失败3.8要求(WACK Perf测试失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆