Skip to content

Commit e573ef6

Browse files
committed
uncapped max capture rate
1 parent d78aa65 commit e573ef6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ShaderGlass/CaptureSession.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ CaptureSession::CaptureSession(winrt::IDirect3DDevice const& device,
5353
// max 250Hz?
5454
const auto minInterval = maxCaptureRate ? std::chrono::milliseconds(4) : std::chrono::milliseconds(15);
5555
m_session.MinUpdateInterval(winrt::Windows::Foundation::TimeSpan(minInterval));
56+
if(maxCaptureRate)
57+
m_session.MinUpdateInterval(winrt::Windows::Foundation::TimeSpan(0));
5658
}
5759
catch(...)
5860
{ }

0 commit comments

Comments
 (0)