none
DirectXMath cached memory? RRS feed

  • Question

  • (I hope this isn't off-topic, feel free to redirect me if it is.)

    Some DirectXMath functions like XMLoadFloat say that the parameter must reside in cached memory. What is cached memory and how do I get it?

    Saturday, February 15, 2020 6:40 AM

Answers

  • All system memory is cached.  If you're working with a GPU, it's possible you might encounter uncached memory on the GPU, although even that would be unusual.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    • Marked as answer by sebi123 Saturday, February 15, 2020 7:54 PM
    Saturday, February 15, 2020 7:46 AM

All replies

  • All system memory is cached.  If you're working with a GPU, it's possible you might encounter uncached memory on the GPU, although even that would be unusual.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    • Marked as answer by sebi123 Saturday, February 15, 2020 7:54 PM
    Saturday, February 15, 2020 7:46 AM
  • All system memory is cached.  If you're working with a GPU, it's possible you might encounter uncached memory on the GPU, although even that would be unusual.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Hmm, well then it's strange that XMLoadFloat is specifically asking for cached memory... but OK then :)
    Saturday, February 15, 2020 7:56 PM
  • DirectXMath also runs on XBox and Windows Phone, some of which have processors with different rules.  If you're running regular Windows, then all system memory is cached.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Monday, February 17, 2020 12:16 AM