Skip to content

Show drop-down-list to select gpu in ImGui #536

Open
@IAmNotHanni

Description

Is your feature request related to a problem?

If multiple gpus are available, display a "select gpu" dropdown list in ImGui.

Description

If multiple gpus are available, we have the --gpu <index> command line which allows the user to specify which gpu will be picked. (The code will validate that the chosen index is valid and that the chosen gpu is suitable for the application's purpose). However, there is no way of switching the gpu at runtime.

In my system, I have an AMD 7950X with an internal gpu chip (VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU) and an Intel Arc A770 16GB (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU).

Alternatives

Do not implement this.

Affected Code

UI rendering

Operating System

all

Additional Context

Switching to another gpu should not be difficult. You simply shut down the engine and restart it with the new gpu. To create the list, you must enumerate the physical devices and store both the index and the name of it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions