Skip to content

added vram detection and improved gpu formatting#174

Open
BrenoPT wants to merge 1 commit into
iinsertNameHere:mainfrom
BrenoPT:fix/gpu-name-formatting
Open

added vram detection and improved gpu formatting#174
BrenoPT wants to merge 1 commit into
iinsertNameHere:mainfrom
BrenoPT:fix/gpu-name-formatting

Conversation

@BrenoPT
Copy link
Copy Markdown

@BrenoPT BrenoPT commented Apr 14, 2026

Is your pull request linked to an existing issue?

#156

What is your pull request about?:

I was trying to resolve the very verbose GPU name that shows up when fetching with the gpu stat enabled.
I saw that another issue had been opened and merged about this but I still had a problem displaying the gpu in my system for some reason.

Screenshot2026-04-14 18-30-06

So I added helper functions to cleanup the output from glxinfo and get the vram amount for discrete gpus to display alongside it.

Screenshot2026-04-14 18-23-47

Any other disclosures/notices/things to add?

I was afraid that this would significantly impact performance but after running a few tests it seems to not affect it that much, even though this adds a lot of code to the probe.
I used hyperfine and run the command in a single thread to measure performance, deleting the cache between runs, and the results I got are as follows:

Current build:
Screenshot2026-04-14 18-20-30

My build:
Screenshot2026-04-14 18-22-46

@BrenoPT BrenoPT changed the title added ram detection and improved gpu formatting added vram detection and improved gpu formatting Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant