DirectStorage 1.2 Available Now for Windows 10 and Windows 11

    DirectStorage 1.2 Available Now for Windows 10 and Windows 11

    DirectStorage 1.2 Available Now for Windows 10 and Windows 11

    Posted: 19 Apr 2023

    Today we’re releasing the 1.2 version of the DirectStorage SDK, where we’ve added new features and made some fixes based on your feedback. The full list of changes can be found on the NuGet page and you can update to the latest version using NuGet update. 

    Visit the DirectStorage landing page for more information about how to get started. If you have any questions or feedback, please reach out to us on the #directstorage channel on the D3D12 Discord Server.

    Force Buffered IO

    DirectStorage currently opens files in unbuffered mode. This allows us to avoid unnecessary copies, getting the data onto the GPU as quickly as possible. However, we heard from some developers that they’d like to be able to use the same code both on high-speed SSDs as well as legacy hard drives. The legacy hard drives require buffered IO in order to mask the long seek times. For this reason, we added the ability to configure DirectStorage to open files in buffered mode.

    This can be enabled by setting the “ForceFileBuffering” field in DSTORAGE_CONFIGURATION1 to TRUE. Note that buffered IO is incompatible with BypassIO, and therefore DisableBypassIO must be set to TRUE when using this option.
    It is the title’s responsibility to know when to use this setting. This feature should only be enabled for slower HDD drives that will benefit from the OS file buffering features.

    New GetCompressionSupport API

    DirectStorage currently chooses the decompression path for built-in compression formats based on the supported capabilities of the GPU. There are scenarios where a CPU based fallback path is chosen. We heard from developers that it would be beneficial to understand which decompression path is being used so that default texture resolution settings may be set based on this. To enable this, we added a new API for querying what path the runtime has chosen.

    IDStorageQueue2::GetCompressionSupport() returns a value indicating whether a GPU optimized implementation, GPU fallback for CPU fallback is used for decompression, as well as what types of queues DirectStorage will use for decompression.

    Bug Fixes

    Performance improvements

    • Moved the copy after GPU decompression onto the compute queue for GPUs on which this is faster.

    Brink's Avatar Posted By: Brink
    19 Apr 2023


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:47.
Find Us

Windows 10 Forums