Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to Know If the Game Is Run on GPU  (Read 1607 times)

0 Members and 1 Guest are viewing this topic.

Furkanzmc

  • Newbie
  • *
  • Posts: 13
    • View Profile
How to Know If the Game Is Run on GPU
« 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?

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: How to Know If the Game Is Run on GPU
« Reply #1 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.

Furkanzmc

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: How to Know If the Game Is Run on GPU
« Reply #2 on: April 23, 2014, 12:51:08 pm »
OK, thank you for the answer.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to Know If the Game Is Run on GPU
« Reply #3 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.
Laurent Gomila - SFML developer