1
$\begingroup$

Is it possible to directly bypass the CPU while transferring data to the GPU? could there be hardware which gives the GPU direct memory access to a data stream for real-time GPU processing and rendering?

$\endgroup$
1
  • 1
    $\begingroup$ Are you talking about on a PC (where the GPU has its own memory) or a mobile platform (where the GPU accesses main memory directly)? $\endgroup$
    – Dan Hulme
    Jan 3, 2017 at 11:34

1 Answer 1

3
$\begingroup$

On a desktop (or laptop) the GPU is connected to the PCIe bus. This gives it direct access to the physical RAM.

If you map the buffer you want to fill and then read a file into that mapped memory. The OS will tell the disk drive to dump the file into the physical ram (the disk also has direct memory access), then when you go to use the mapped buffer the driver will tell the gpu to copy it into the vram. All the while the CPU never touched that bit of ram.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.