MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / ThrottleWait

Method ThrottleWait

Source/renbase2.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208
209void CBaseVideoRenderer2::ThrottleWait()
210{
211 if (m_trThrottle>0) {
212 int iThrottle = m_trThrottle/10000; // convert to mSec
213 DbgLog((LOG_TRACE, 0, TEXT("Throttle %d ms"), iThrottle));
214 Sleep(iThrottle);
215 } else {
216 Sleep(0);
217 }
218} // ThrottleWait
219
220
221// Whenever a frame is rendered it goes though either OnRenderStart

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected