This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: A 2534400bytes memcpy takes 40 milliseconds

Other Parts Discussed in Thread: TDA4VM

型号: TDA4VM

Memcpy glMapBufferRange返回的指针非常慢,需要40毫秒来复制2534400bytes的数据,我该怎么做以减少此时间?

(SDK版本为7.2)

unsigned char * ptr =(unsigned char *)glMapBufferRange GL_PIXEL_PACK_BUFFER 0 static_cast < GLsizeiptr >(iSize ),GL_MAP_READ_BIT );
 
//花费40毫秒
memcpy (d st ,ptr iSize );

glUnmapBuffer GL_PIXEL_PACK_BUFFER );
Additional scene description:
    At present, display provides me with a DMA address, and then I map the address from the GPU and copy it to the address of display. I test that the buffer of the same size in memcpy can be copied in less than 5 milliseconds when tested in the memory from ordinary malloc~