| 216 | } |
| 217 | |
| 218 | void 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 | |
| 235 | void CaptureScriptManager::PostRender(const std::function<bool(const char*)>& dumpScreenshotCallback) |
| 236 | { |
nothing calls this directly
no outgoing calls
no test coverage detected