[host] reworked capture to capture at the hosts's frame rate

This will help frame delivery to the host arrive on time, as well as
allow lower latency with a higher host refresh rate.

Data offset addresses are now also pre-calculated rather then
updated on every frame.
This commit is contained in:
Geoffrey McRae
2017-12-03 22:03:22 +11:00
parent aa191f6c90
commit a54f3000f5
3 changed files with 67 additions and 63 deletions

View File

@@ -49,6 +49,10 @@ private:
IVSHMEM * m_ivshmem;
HANDLE m_readyEvent;
ICapture * m_capture;
uint8_t * m_memory;
int m_frameIndex;
KVMGFXHeader * m_header;
uint8_t * m_frame[2];
size_t m_frameSize;
uint64_t m_dataOffset[2];
int m_frameIndex;
};