Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
do not stop renderer when minimized
Browse files Browse the repository at this point in the history
  • Loading branch information
emmauss committed Jan 13, 2022
1 parent 6feaaf0 commit b99b121
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Ryujinx.Ava/Ui/Controls/RendererBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal void Present(int image)
QueueRender();
try
{
_waitEvent.Wait(16, _token);
_waitEvent.Wait(_token);
}
catch(OperationCanceledException){

Expand Down
10 changes: 10 additions & 0 deletions Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@ public void Sort_Checked(object sender, RoutedEventArgs args)
}
}

protected override void HandleWindowStateChanged(WindowState state)
{
WindowState = state;

if (state != WindowState.Minimized)
{
Renderer.Start();
}
}

public void Order_Checked(object sender, RoutedEventArgs args)
{
if (sender is RadioButton button)
Expand Down

0 comments on commit b99b121

Please sign in to comment.