GPU的性能分析和OpenGL ES的回调回调、性能、GPU、ES

2023-09-05 11:05:55 作者:我年轻我任性

有没有一种方法来添加回调在OpenGL ES类似于DirectX的了?我想配置文件中的GPU性能,所以我试图找出了多长时间来执行GPU的某些部分。

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.

在理想情况下,我推标记/回调,然后调用了一堆GL的画呼叫,然后按另一个标记,然后找出多少毫秒其间传递这两个标记的帧后。

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.

(任何其他方法来分析GPU性能将是有益的了。)

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

推荐答案

GPU制造商提供了良好的探查为Android。至于我的经验,它需要root权限。

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

的Adreno™PROFILER 获得高通Snapdragon 多名PerfHUD ES 获得NVIDIA的Tegra2 ADRENO™ PROFILER for Qualcomm Snapdragon PerfHUD ES for NVIDIA Tegra2