SFML community forums

Help => General => Topic started by: Furkanzmc on April 23, 2014, 11:23:44 am

Title: How to Know If the Game Is Run on GPU
Post by: Furkanzmc on April 23, 2014, 11:23:44 am
Hi.
Is there a way to know If the game is run on GPU or integrated graphics card so that we can activate different effects for each graphics card being used?
Title: Re: How to Know If the Game Is Run on GPU
Post by: G. on April 23, 2014, 12:20:01 pm
What kind of effects?
I don't think it's possible, and what would it mean? Some newer integrated graphics cards are easily better than older GPU isn't it?

If you're using shader, you can test if shaders are available.
Title: Re: How to Know If the Game Is Run on GPU
Post by: Furkanzmc on April 23, 2014, 12:51:08 pm
OK, thank you for the answer.
Title: Re: How to Know If the Game Is Run on GPU
Post by: Laurent on April 23, 2014, 01:18:45 pm
You can check the result of glGetString(GL_VENDOR) and glGetString(GL_RENDERER) to identify the graphics card/driver.

https://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetString.xml

Quote
Strings GL_VENDOR and GL_RENDERER together uniquely specify a platform. They do not change from release to release and should be used by platform-recognition algorithms.