go-sdl2 icon indicating copy to clipboard operation
go-sdl2 copied to clipboard

Any way to use integrated graphics card only?

Open talbergs opened this issue 7 years ago • 7 comments

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. ?

talbergs avatar Jan 20 '18 16:01 talbergs

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.

veeableful avatar Jan 21 '18 08:01 veeableful

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.

talbergs avatar Feb 08 '18 19:02 talbergs

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 avatar Feb 22 '18 03:02 veeableful

@veeableful thank you.

talbergs avatar Feb 24 '18 13:02 talbergs

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 avatar Sep 03 '18 02:09 dragonfax

@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.

veeableful avatar Sep 05 '18 06:09 veeableful

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

veeableful avatar Sep 11 '18 08:09 veeableful