
Practical Matters 243
with a tool called Intel Inspector XE 2013 that helps you track down memory
errors, leaks, and threading problems.
5.3.2 Performance on the GPU
Performance measurements on the GPU are possible at a high level us-
ing only D3D11 support. Firstly, you can always measure frame rate dur-
ing idle loop time to give you a coarse idea of how long something takes
to compute or how much faster something is after you have made shader
changes. The GTEngine sample applications show how to do this. Secondly,
the
ID3D11Device interface allows queries related to timing. Listing 5.8 shows
the basic code. The
HRESULT processing is omitted for simplicity ...