[host] memory performance improvements

This commit is contained in:
Geoffrey McRae
2017-11-17 11:54:42 +11:00
parent 534e9425f1
commit 9de71ed2da
2 changed files with 72 additions and 2 deletions

View File

@@ -260,7 +260,7 @@ bool NvFBC::GrabFrame(struct FrameInfo & frame)
uint8_t *src = (uint8_t *)m_frameBuffer + dataOffset;
uint8_t *dst = (uint8_t *)frame.buffer;
for(unsigned int y = 0; y < frame.height; ++y, dst += dataWidth, src += m_grabInfo.dwBufferWidth * 3)
memcpy_s(dst, dataWidth, src, dataWidth);
Util::Memcpy64(dst, src, dataWidth);
return true;
}