mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 18:24:08 +00:00
[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:
@@ -154,7 +154,7 @@ bool NvFBC::Initialize(CaptureOptions * options)
|
||||
ZeroMemory(&m_grabFrameParams, sizeof(NVFBC_TOSYS_GRAB_FRAME_PARAMS));
|
||||
ZeroMemory(&m_grabInfo, sizeof(NvFBCFrameGrabInfo));
|
||||
m_grabFrameParams.dwVersion = NVFBC_TOSYS_GRAB_FRAME_PARAMS_VER;
|
||||
m_grabFrameParams.dwFlags = NVFBC_TOSYS_WAIT_WITH_TIMEOUT;
|
||||
m_grabFrameParams.dwFlags = NVFBC_TOSYS_NOWAIT;
|
||||
m_grabFrameParams.dwWaitTime = 100;
|
||||
m_grabFrameParams.eGMode = NVFBC_TOSYS_SOURCEMODE_FULL;
|
||||
m_grabFrameParams.dwStartX = 0;
|
||||
|
Reference in New Issue
Block a user