4 ms·
OpenGL doesn't have any way to do this except sometimes via vendor specific extensions. Basically how OpenGL works is it creates the graphics context on whichev
by voxic11 4mo ago
OpenGL doesn't have any way to do this except sometimes via vendor specific extensions. Basically how OpenGL works is it creates the graphics context on whichever device the system hands it. So you can configure the GPU used by OpenGL on the system level but not at the application level.
- pjmlp 4mo agoIt does so via the respective OS way on how to create OpenGL context.
- FrostKiwi 4mo agoFYI, setting `NvOptimusEnablement` and `AmdPowerXpressRequestHighPerformance` have been the canonical way on Windows, `__NV_PRIME_RENDER_OFFLOAD` + `__GLX_VENDOR_LIBRARY_NAME` on Linux. Though not an OpenGL feature per se, as you mentioned.
- izacus 4mo agoThat would be the vendor extensions they mentioned.
- KellyCriterion 4mo agoAFAIR there was a way to "list" existing output devices, so your app could select the proper one?