How to get Graphic Card Name and Graphic Card Max Memory

Started by xJan45x, May 17, 2015, 14:43:59

Previous topic - Next topic

xJan45x

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)


xJan45x

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

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.