Skip to content

Conversation

@fumiama
Copy link
Contributor

@fumiama fumiama commented Dec 2, 2025

Before this modification, the GPU selection shows up in every runners, which makes it confusing since the GPU selection result is only used in DirectML runner. After this, the relationship becomes clear, as shown in the screen record below:

2025-12-02.22-59-06.mp4

Copilot AI review requested due to automatic review settings December 2, 2025 15:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the UI clarity for ONNX execution provider settings by conditionally displaying GPU selection options only when the DirectML runner is selected, since GPU selection is only relevant for that specific runner.

Key Changes:

  • Conditionally display GPU selection UI based on selected ONNX runner
  • Add CPU fallback execution provider for improved robustness
  • Fix Android compatibility by returning a default GpuInfo object instead of an empty list

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
OpenUtau/Views/PreferencesDialog.axaml Wraps GPU selection UI elements in a StackPanel with conditional visibility binding
OpenUtau/ViewModels/PreferencesViewModel.cs Adds ShowOnnxGpu property and toggle logic to control GPU options visibility based on DirectML runner selection
OpenUtau.Core/Util/Onnx.cs Returns default GpuInfo for Android instead of empty list and adds CPU execution provider fallback

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fumiama and others added 2 commits December 2, 2025 23:11
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant