Skip to content

Commit

Permalink
Clarify comment a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Jun 17, 2023
1 parent bf79ff1 commit 33b8f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Framework/Platform/GameHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ protected virtual void DrawFrame()

using (drawMonitor.BeginCollecting(PerformanceCollectionType.Sleep))
{
// Importantly, only wait on renderer frame availability if we actually rendered a frame.
// Without this, the wait handle will potentially be in a bad state and take the timeout
// value (1 second) to recover.
// Importantly, only wait on renderer frame availability if we actually rendered a frame since the last `WaitUntilNextFrameReady()`.
// Without this, the wait handle, internally used in the Veldrid-side implementation of `WaitUntilNextFrameReady()`,
// will potentially be in a bad state and take the timeout value (1 second) to recover.
if (didRenderFrame)
Renderer.WaitUntilNextFrameReady();

Expand Down

0 comments on commit 33b8f7e

Please sign in to comment.