Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--gpu-index is ineffective when using the Compatibility rendering method #87763

Open
Tracked by #66458
Calinou opened this issue Jan 30, 2024 · 0 comments
Open
Tracked by #66458

Comments

@Calinou
Copy link
Member

Calinou commented Jan 30, 2024

Tested versions

  • Reproducible in: 4.2.1.stable, 4.3.dev cae7599

System information

Godot v4.3.dev (cae7599) - Fedora Linux 39 (KDE Plasma) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (nvidia; 545.29.06) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)

Issue description

Engine.get_gpu_index() isn't used in the gl_manager_* files, which means the --gpu-index command line argument is ignored when using the Compatibility rendering method.

This is because OpenGL doesn't offer as much control over GPU selection compared to Vulkan and Direct3D12.

@hpvb suggested we could implement support for --gpu-index when using EGL, but it probably can't be done when using GLX. In the meantime, we could print a warning when using --gpu-index with the Compatibility rendering method, but I don't know of a way to do this without having to modify every gl_manager_* file out there (since they don't inherit from a common class).

Steps to reproduce

Start the project manager with --gpu-index 0, then --gpu-index 1 and notice how the same GPU is always used, even on multi-GPU systems (or on systems with llvmpipe available).

Minimal reproduction project (MRP)

N/A

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

No branches or pull requests

1 participant