google / google/agi

GPU Counters sometimes missing in System Profile

Open
#919 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

**Environment information:**
- AGI version: 2021-2.0.0:aad09f92ea8e608b11001aae1f93af3cc1101096
- Host OS: macOS 11.4
If tracing on Android:
- Device model: Samsung Galaxy S10E
- Android Version: 11

**Bug description**
I'm not an IHV trying to advertise performance numbers in X million prims/s. When I can get the "GPU Counters" section to actually appear in a System Profile (usually this is missing but in 1/10 captures it's there), there are 300 different great counters in there. But then these are displayed as prims/s. I assume AGI is taking the value it records and dividing by the time. I just want the raw numbers, and some of the fields do this.

By the time these values are divided by time, they are totally blown out into millions of polys. In this case one graph column that I select reports 58mil prims/s, but my entire scene was around 150K triangles. This division and unneeded amplification leaves these counters useless where applied. Maybe the "advanced" setting would allow these to not be divided, but out of the box this should work better.

Also would be nice to always have these counter, rather than have them be captured sporadically. I have all the counter checkboxes turned on in the capture settings.

**Reproduction steps**
1. Do a capture
2. Look at the GPU Counter -> Visible Primitives counter
3. Try to figure out how many triangles you actually submitted.

**Stacktrace**
Not applicable

**Screenshots**
![image](https://user-images.githubusercontent.com/3750359/131908216-c1e0b8d2-1c6c-4098-b864-1703c4a9289b.png)

**Additional debugging information**
Not applicable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.