Advanced API Performance: Memory and Resources (original) (raw)

This post covers best practices for memory and resources on NVIDIA GPUs. To get a high and consistent frame rate in your applications, see all Advanced API Performance tips.

Memory

Optimal memory management in DirectX 12 is critical to a performant application. The following advice should be followed for the best performance while avoiding stuttering.

Resources

Selection of resource formats and types should be carefully considered, based on the application’s requirements and performance. These recommendations are not likely universal for all applications as they are dependent on workloads and limiters. For example, preferring a D24 depth format may not matter for a tiny, infrequently used buffer. However, it may be critical for an 8k shadow map. The following advice should be combined with using NVIDIA Nsight to diagnose performance issues and verify improvements.

Acknowledgments

Thanks to Patrick Neil, Dhiraj Kumar, Ivan Fedorov, and Juha Sjoholm for their advice and assistance.

About the Authors