public void LateUpdate() { // m_RenderThreadCpuTime uses native plugin event to get CPU time of render thread. // We don't want to do this at end of frame because it might introduce an unnecessary sync when GraphicsJobs are used. // Alternative would be to use Vulkan native plugin API to configure the event. if (m_CpuFrameTimeProvider != null) { m_CpuFrameTimeProvider.LateUpdate(); } }
public void LateUpdate() { // m_RenderThreadCpuTime uses native plugin event to get CPU time of render thread. // We don't want to do this at end of frame because it might introduce an unnecessary sync when GraphicsJobs are used. // Alternative would be to use Vulkan native plugin API to configure the event. if (m_CpuFrameTimeProvider != null || m_GpuFrameTimeProvider != null) { // InvokeEndOfFrame is not executed in non-render frames, so we make sure to also keep this in sync if (WillCurrentFrameRender()) { if (m_CpuFrameTimeProvider != null) { m_CpuFrameTimeProvider.LateUpdate(); } if (m_GpuFrameTimeProvider != null) { m_GpuFrameTimeProvider.Measure(); } } } }