DirectStorage is a low-level API developed by Microsoft for Windows PCs. This API can significantly improve performance of your game through faster asset loading and reduced CPU overhead.
Windows PCs use advanced storage drives, such as Non-Volatile Memory Express Solid-State Drives (NVMe SSDs) that can process a large number of I/O requests per second. The Win32 File I/O APIs perform suboptimally when interacting with these high speed drives and create significant CPU overhead. The DirectStorage API is designed to fully utilize these NVMe SSD storage drives allowing simultaneous file read operations and provides the following advantages:
Unity provides support for the DirectStorage API, allowing you to make use of these advantages in your project.
Notes:
You can enable the DirectStorage API support for asset loading through the Windows Player settings.
Note: Unity uses DirectStorage API only when loading the following types of asset data:
To enable the DirectStorage API support, follow these steps:
Your Unity project now uses DirectStorage API for asset loading. When disabled, Unity can fallback to Win32 APIs for File I/O operations.