MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / PreRender

Method PreRender

Rtxpt/SampleCommon/CaptureScriptManager.cpp:218–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void CaptureScriptManager::PreRender()
219{
220 // Update Screenshot counter
221 if (m_active && m_resetAndWarmup)
222 {
223 if (m_resetAndWarmupCounter == -1) // we just started with delay, set it up
224 {
225 m_resetAndWarmupCounter = m_resetAndWarmupFrames;
226 m_ui.ResetRealtimeCaches = true;
227 }
228 if (m_resetAndWarmupCounter)
229 m_ui.ResetAccumulation = true;
230
231 m_resetAndWarmupCounter = std::max(0, m_resetAndWarmupCounter-1);
232 }
233}
234
235void CaptureScriptManager::PostRender(const std::function<bool(const char*)>& dumpScreenshotCallback)
236{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected