[host] memory performance improvements

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:55 +11:00
1 parent 534e9425f1
commit 9de71ed2da
2 files changed
+72 -2

No files matched your search

+1 -1
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;
}