-
Notifications
You must be signed in to change notification settings - Fork 302
feat: use short "GPU" name in memory widget if there's only one #1791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hmm. Not 100% sure about this one at first glance, might be fine with this being the default setting with the old setting being an option. Let me think about it for a bit and get back to you. Slightly related, I was also going to add a fix to limit the length of the GPU name in the legend based on width + align it better, but I do agree the default behaviour being just "GPU" for a single GPU is probably fine. |
We used to use a 'short name' that was derived from the last two parts of the string ie '1050 Ti'. While not really conforming to the 3 letter convention it was less harsh on the legend sizing with multiple gpus. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1791 +/- ##
==========================================
- Coverage 42.09% 42.08% -0.01%
==========================================
Files 115 115
Lines 16208 16211 +3
==========================================
Hits 6823 6823
- Misses 9385 9388 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What do you think, is the current approach fine? Personally I like that it aligns well with just 3 characters, but I understand having a special case for single GPUs is not the best.
By the way, why was that removed? I'm happy to bring it back for the multiple GPUs case. |
|
Sorry for the delay - just to answer the questions:
To be honest I think it's fine to have a special case for single GPUs - but it might just make more sense to make it so there's an option to choose either short simple GPU names ( In a future PR I can also make it so the longer GPU names don't clash as badly even if used.
Don't think it was an active choice as far as I'm aware? |
Description
When you have a single GPU, you don't need to see it's full name, "GPU" is fine.
Issue
In a smaller terminal window the legend for the memory widget was not visible, because the GPU name tried to take up too much space.
When resizing the terminal window or the widget, it's better. Reading it is still a bit harder, as the TODO comment suggests in the code:
Testing
If relevant, please state how this was tested. All changes must be tested to work:
If this is a code change, please also indicate which platforms were tested:
Checklist
If relevant, ensure the following have been met:
cargo fmt)README.md, help menu, doc pages, etc.)