go-sdl2
go-sdl2 copied to clipboard
Any way to use integrated graphics card only?
I would like to create an application that would tend to use integrated graphics card instead of descrete graphics card. Is there a way to achieve this?
Render without using opengl. ?
Hi @MartanLV, I'm not entirely sure about this but I think that's a setting that may only be set by the system. I believe there's no way to force usage of integrated graphics card inside of SDL2.
I am using app called gfxCardStatus, there I apply setting to use integrated only, once I run an example using this library, gfxCardStatus notifies it had just switched cards. Maybe it's some bug in gfxCardStatus app.
Hi @MartanLV, sorry I've been away for the lunar new year (Happy new year!).
I'll ask on the SDL2 forum about this to see if they have any input as I don't have the knowledge to help you solve this problem.
Edit: I'll do that after I've done testing on my Macbook Air.
@veeableful thank you.
Unity seems to be able to do this. I've seen their settings popup for some games, lets you select the GPU to use from a drop-down list.
I can understand the need for it. It would let you test out your code on a lower-end gpu, without having to move to a completely different machine.
@dragonfax I don't think SDL2 supports this :(
I posted the question to the SDL2 forum several months ago: https://discourse.libsdl.org/t/question-is-it-possible-to-set-sdl2-to-use-integrated-graphics-only/23929
But I didn't get any reply. I didn't find anything related after some Googling. I think you need to use system software to force integrated graphics if you have to use SDL2.
Some people (including Icculus) just replied!
https://discourse.libsdl.org/t/question-is-it-possible-to-set-sdl2-to-use-integrated-graphics-only/23929/4