Getting DrawCall timings on android

Since a lot of our performance issues are content specific with specific cosmetics, we’d like to experiment with enabling per-draw gpu markers on mobile in some of our testing, even if there is some overhead, in order to better attribute GPU performance issues to specific content that is causing it. However, on iOS, stat gpu shows nothing and Insights captures show just the highest level ‘GpuWork’ markers.

On Android (Galaxy S25 Ultra), we get some markers, but all of our actual SceneColor draw calls are bunched at the very end of SceneColorRendering, with a big gap that’s larger than the rendering itself between the end of the ShadowDepths and the start of the pre-pass, which I don’t think is realistically what’s happening. On another device (Galaxy A06) there is always a MaterialDrawEvent that appears to take up nearly the entire SceneColorRendering pass in the MobileRenderPrePass, but I also don’t think that’s what’s happening based on the activity on the GPU I see in native profilers.

I know that timings are inherently tricky on a mobile gpu, and anything that presents it like a linear timeline is doing something behind the curtains to transform what’s really going on with a tiled gpu into something more linear, but is it expected that Insights provides reliable per-draw timings, or is it only useful for the higher level markers on mobile gpus?

[Attachment Removed]

Steps to Reproduce
Take an Insights capture on a Test build with bAllowProfileGPUInTest = true in the build settings and CVars=r.Android.SupportsTimestampQueries=1 in the device profile and r.RHISetGPUCaptureOptions = 1

[Attachment Removed]

Hi Tommy,

For the iOS side of the issue, whereby GPU markers weren’t appearing in the test build, you’ll need to add

GlobalDefinitions.Add("ENABLE_METAL_GPUEVENTS_IN_TEST=1");to the app’s Target.cs.

Best regards.

[Attachment Removed]