Skip to content

GS: Add GPU pipeline stats to OSD.#14381

Open
TJnotJT wants to merge 5 commits intoPCSX2:masterfrom
TJnotJT:gpu-pipeline-stats
Open

GS: Add GPU pipeline stats to OSD.#14381
TJnotJT wants to merge 5 commits intoPCSX2:masterfrom
TJnotJT:gpu-pipeline-stats

Conversation

@TJnotJT
Copy link
Copy Markdown
Contributor

@TJnotJT TJnotJT commented May 1, 2026

Description of Changes

Adds vertex shader and pixel shader invocations to the OSD.

Rationale behind Changes

Add additional informations for diagnosing performance issues.

Suggested Testing Steps

Use any HW renderer and enable 'Show GPU Pipeline Statistics' in Settings>On-Screen Display. The OSD should show a line like

VSI: 12.345K | PSI: 123.456M

for the vertex shader invocations and pixel shader invocations (suffixes: K = 10^3, M = 10^6, B = 10^9).

The value of pixel shader invocations varies dramatically between the APIs, and likely can't be compared meaningfully. (I don't currently have a good explanation for the cause.) Edit: changed the behavior so that it collects stats before OSD/ImGui is drawn. The results seem more stable and it could be a reasonable comparison.

The values also show for SW since it uses VK for presenting, but the values are likely not meaningful.

Did you use AI to help find, test, or implement this issue or feature?

Yes, to ask about how pipeline stats queries work in the APIs.

Adds vertex shader and pixel shader invocations.
@TJnotJT TJnotJT force-pushed the gpu-pipeline-stats branch from 17bf328 to f20fb37 Compare May 2, 2026 01:03
@TJnotJT TJnotJT marked this pull request as ready for review May 2, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant