GPU Profiling and callbacks in OpenGL ES

☆樱花仙子☆ 提交于 2019-12-03 13:29:18

问题


Is there a way to add callbacks in OpenGL ES similar to what DirectX has? I'm trying to profile the GPU performance, so I'm trying to figure out how long it took to execute certain parts of the GPU.

Ideally, I "push" a marker/callback, then call a bunch of GL draw calls, then push another marker, and then find out how many milliseconds passed inbetween those two markers a frame later.

(Any other ways to profile GPU performance would be helpful too.)


回答1:


GPU maker provides nice profiler for Android. As far as my experience, it requires root privilege.

  • ADRENO™ PROFILER for Qualcomm Snapdragon
  • PerfHUD ES for NVIDIA Tegra2



回答2:


Use the DDMS feature under your Eclipse environment. It's installed by default.

A Very powerful graphical profiling utility. You can also lookup threads, heap, method profiling, objects allocation, and more.

Check the how to use DDMS here. Hope it helps ;)



来源:https://stackoverflow.com/questions/5071952/gpu-profiling-and-callbacks-in-opengl-es

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!