flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.11k stars 263 forks source link

`fps_only` config resizes the label when FPS is 100 or 10 #1342

Open zaps166 opened 1 month ago

zaps166 commented 1 month ago

When MANGOHUD_CONFIG is set to fps_only, the label resizes non-stop when FPS is 100 or 10 causing FPS counter to change position os screen when it's aligned to the right.

MangoHud version: 0.7.2.

Steps to reproduce the behavior

  1. Execute: MANGOHUD=1 MANGOHUD_CONFIG=fps_only,position=top-right,fps_limit=10 vkcube.
  2. Observe FPS counter.

Expected behavior Don't resize the label as long as FPS counter shows constant value.

Screenshots

https://github.com/flightlessmango/MangoHud/assets/6239090/7b35ae8a-718f-4aa0-9fe7-b947dfe2ff00

gort818 commented 5 days ago

Does this happen if you set position=top-left ?

zaps166 commented 5 days ago

Does this happen if you set position=top-left ?

Yes, I see the semi-transparent background of FPS label is resizing, too.


Looks like size is determined on different number rounding maybe (example: 9.99 VS 10.00)?