-
Notifications
You must be signed in to change notification settings - Fork 299
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
fps_only
shows FPS counter multiple times
#1236
Comments
Thanks for the issue, I can confirm. I will look into it. |
I guess the easiest way is to check if |
I'm quite new to Maybe a reload could be useful, if you use a config file to control |
I think I'm having the same issue when launching games with Heroic. For my config I have Edit: tested with one more Steam game, had the same issue. Difference between them was that game 1 was linux-native (Total War Warhammer 3) and game 2 was windows-native (Ready or Not) |
Generally it duplicates items when diff --git a/src/overlay_params.cpp b/src/overlay_params.cpp
index caa4202..82ad23c 100644
--- a/src/overlay_params.cpp
+++ b/src/overlay_params.cpp
@@ -976,6 +976,7 @@ parse_overlay_config(struct overlay_params *params,
if (params->enabled[OVERLAY_PARAM_ENABLED_legacy_layout]) {
HUDElements.legacy_elements();
} else {
+ HUDElements.ordered_functions.clear();
for (auto& option : HUDElements.options) {
HUDElements.sort_elements(option);
} |
Describe the bug
When using the
fps_only
option, the fps counter is displayed three times instead of once. And when I reload the config usingShift_L+F4
it just adds another FPS counter. So if I reload the config twice, I end up with five fps counters.List relevant hardware/software information
To Reproduce
Steam Launch Command:
env MANGOHUD=1 MANGOHUD_CONFIG=fps_only=1 %command%
Expected behavior
The fps counter should be displayed only once.
Screenshots
after one reload:
The text was updated successfully, but these errors were encountered: