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

tetra on Windows selects an integrated GPU when a discrete GPU is available #302

Open
ghost opened this issue Nov 28, 2021 · 1 comment
Open
Labels
Area: Graphics Issues related to graphics/rendering. Area: Platform Issues relating to the platform layer Platform Specific: Windows Issues that are specific to systems running Windows. Type: Bug Problems with the code/documentation that need to be fixed.

Comments

@ghost
Copy link

ghost commented Nov 28, 2021

Summary

I have a laptop with dual Windows/Ubuntu boot and I have noticed a performance difference between the two systems when running a tetra app. It turns out that the same app compiled on Windows selects an integrated GPU while on Ubuntu it selects a discrete one.

Steps to Reproduce

Take any of the examples, use ContextBuilder::debug_info and run on Windows 10.

Additional Info

On Windows 10 I get:

OpenGL Vendor: Intel
OpenGL Renderer: Intel(R) HD Graphics 630
OpenGL Version: 3.2.0 - Build 27.20.100.8681
GLSL Version: 1.50 - Build 27.20.100.8681

On Ubuntu 21.10:

OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL Version: 3.2.0 NVIDIA 470.82.00
GLSL Version: 1.50 NVIDIA via Cg compiler 

The same thing happens on 0.6.7 and the main branch.

@ghost ghost added the Type: Bug Problems with the code/documentation that need to be fixed. label Nov 28, 2021
@17cupsofcoffee
Copy link
Owner

From what I've read, there's not actually a meaningful way of telling OpenGL which GPU to use (unlike in more modern APIs, which let you enumerate over them and pick one out).

Apparently there are some symbols you can define to tell NVidia/AMD drivers that you want the high performance GPU, though - I'll try and figure out what the Rust equivalent of that code is.

@17cupsofcoffee 17cupsofcoffee added Area: Graphics Issues related to graphics/rendering. Area: Platform Issues relating to the platform layer Platform Specific: Windows Issues that are specific to systems running Windows. labels Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Graphics Issues related to graphics/rendering. Area: Platform Issues relating to the platform layer Platform Specific: Windows Issues that are specific to systems running Windows. Type: Bug Problems with the code/documentation that need to be fixed.
Projects
None yet
Development

No branches or pull requests

1 participant