Fix render stopwatch not stopping in case of exceptions
このコミットが含まれているのは:
1 親
8460db9ea9
コミット
3b586227d6
1ファイル変更
+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>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする