Fix render stopwatch not stopping in case of exceptions

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-20 23:30:39 +01:00
1 親 8460db9ea9
コミット 3b586227d6
1ファイル変更
+4 -4
+4 -4
ファイルの表示
@@ -171,10 +171,14 @@ partial class SwapChainManager<TOwner>
RenderLoop();
}
this.renderStopwatch?.Stop();
OnRenderingStopped();
}
catch (Exception e)
{
this.renderStopwatch?.Stop();
OnRenderingFailed(e);
}
finally
@@ -223,8 +227,6 @@ partial class SwapChainManager<TOwner>
OnPresent();
}
}
renderStopwatch.Stop();
}
/// <summary>
@@ -275,8 +277,6 @@ partial class SwapChainManager<TOwner>
}
}
}
renderStopwatch.Stop();
}
/// <summary>