java - JOGL - monitor GPU memory -


i looking jogl classes/methods/examples retrieve size of total available gpu memory , current available gpu memory.

i know can done using opengl (jogl java docs).

the link posted uses nvidia proprietary extensions. given way modern gpus operate it's absolutely useless know how "memory" there's left. why?

because opengl operated on abstract memory model. single data objects (textures, vbos) may large fit working memory of gpu, there's virtually no limit on how many textures , vbos can have other system memory (cpu ram). opengl did swap contents on demand.

and ever since opengl-4 / directx-11 capable gpus came around have integrated mmus notion of data object size became meaningless. today's gpus support sparse data objects. on modern gpu can allocate textures several thousand pixels wide , high , sparsely populate them data. if 1 texture object bound, parts of may reside dormant in system memory while other parts in gpu working memory.

old opengl had functions query if texture loaded fast memory. boundaries between gpu , system ram vanishing no longer made sense had subsequently have been removed.

effectively gpu ram nowadays cache , should treat such. you'll hardly query size of cpu caches @ runtime except special applications.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -