Hello Guest

How to get Graphic Card Name and Graphic Card Max Memory

  • 3 Replies
  • 6291 Views
Hey, People. I Coding a Game the moment. And i want to give the user information about the currently FPS and more. How can get the Graphic Card Name? Or how can get information about the currently used Memory and the Max Memory form the Graphic Card. Here is an example so see the Display Title:
"MyGame v. 1.0.0 GPU Name: NVIDIA GeForce GTX 970 GPU Memory: 100 MB / 4096 MB FPS: 495
Has somebody an Idea for this.
Thank you! (Sorry, for my bad English. I came form Germany and English is not my strength :D)

*

Kai

Re: How to get Graphic Card Name and Graphic Card Max Memory
« Reply #1 on: May 17, 2015, 18:57:23 »

Re: How to get Graphic Card Name and Graphic Card Max Memory
« Reply #2 on: May 17, 2015, 19:50:17 »
Hi Kai, Thank you. I have now the GPU Name. For the Memory from the GPU. I don't find the right Class for GL_NVX_gpu_memory_info. Can you give me an example?

*

Kai

Re: How to get Graphic Card Name and Graphic Card Max Memory
« Reply #3 on: May 17, 2015, 19:55:28 »
Ups. That extension did not yet make it into LWJGL3. :o
Will prepare it and send Spasi a pull request for it.
Then it should be in for you at the next build.

EDIT: Also note that since this is a Nvidia extension it naturally only applies to Nvidia cards. But I will add the ATI extension as well. Don't know about Intel though.
« Last Edit: May 17, 2015, 20:02:33 by Kai »