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
    $\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 '17 at 11:34
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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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