Can we estimate VRAM usage when certain OpenGL function is called (based on arguments passed) without testing on actual device?

Hi Swathi,

Thanks for your message, and welcome to the PowerVR Developer Forum!

Unfortunately there is not a PowerVR OpenGL ES extension providing available dedicated video memory. The approach you are following to manually estimate the GPU memory size of each OpenGL ES object is a possible workaround.

As explained in this thread Query total & available GPU memory there is also another way: You can work with the NDA version of our profiling tool PVRTune, PVRTuneComplete, taking a recording with the extra options Client API OpenGL ES and Client Memory Tracking:

image

This way you will be provided with a GPU counter GLES Device Memory Usage which plots the amount of memory allocated by the driver:

This option will limit you to work directly with a single device but at least you will get the information needed. You can request PVRTuneComplete by sending an email to devtech.portal@imgtec.com

Please let me know if you have any other questions.

Best regards,
Alejandro