English 中文(简体)
Tracing unmanaged DirectX objects allocated through Managed DirectX
原标题:

I have a problem where Device.Dispose() is taking a long time to execute when the application is closed. I am investigating whether this is due to unmanaged objects not being freed properly thus resulting in a long cleanup time.

Is there an easy way of tracing or viewing the unmanaged DirectX objects that have been allocated?

最佳回答

I ve found out a way to trace all the calls made to DirectX.

Download and install the DirectX SDK (I installed the August 2009).

Run an application called PIX for Windows in the DirectX SDK -> DirectX Utilities

Create a new experiment from the File menu. Select "a replayable Direct3D call stream, saved to file:", enter a filename and select your application.

When you exit your application a complete trace of all DirectX calls will be shown complete with a timeline.

问题回答

暂无回答




相关问题
Prerequisite for learning directx

I am from .net C# background and I want to learn DirectX. I have knowledge of C++ but I am fairly new to graphic world. I am little confused about how to start learning directx, should I start ...

How to programmatically disable the auto-focus of a webcam?

I am trying to do computer vision using a webcam (the model is Hercules Dualpix). I know it is not the ideal camera to use, but I have no choice here. The problem is the auto-focus makes it hard/...

Making an object orbit a fixed point in directx?

I am trying to make a very simple object rotate around a fixed point in 3dspace. Basically my object is created from a single D3DXVECTOR3, which indicates the current position of the object, ...

3d Alternative for D3DXSPRITE for billboarding

I am looking to billboard a sun image in my 3d world (directx 9). Creating a D3DXSPRITE is great in some cases, but it is only a 2d object and can not exist in my "world" as a 3d object. What is ...

热门标签