MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

Toggling `fps_limit` only works if values follow ascending order

Open purplebar0 opened this issue 2 years ago • 3 comments

Describe the bug Setting the MANGOHUD_CONFIG environment variable (or values inside the configuration file) to this results the value being stuck at 60 no matter how many times the toggle FPS limit button is pressed:

MANGOHUD_CONFIG=fps_limit='60\,0',toggle_fps_limit=F10

It appears that this issue occurs if the list of numbers does not follow ascending order, since combinations like 60,10000 fail the same way.

List relevant hardware/software information

  • Linux Distribution: Artix Linux 6.7.0-zen3-1-zen
  • MangoHud version: 0.7.0-2
  • GPU: Radeon RX 6600 XT

To Reproduce Steps to reproduce the behavior:

  1. Set fps_limit such that the values don't follow ascending order, and set a toggle_fps_limit key
  2. Enter the game
  3. Toggle the values using the toggle key
  4. Some values are ignored

Expected behavior All values, no matter their order, are to be switched to by repeatedly pressing the toggle_fps_limit key.

Additional context In GTA IV (v1.0.7.0), FPS has to be capped when the game initially starts to avoid a rendering crash, so I had to settle for a workaround, which is to set it to the highest value the game seems to not crash on (ex. 1500,60).

purplebar0 avatar Jan 16 '24 12:01 purplebar0

Does this work as expected outside of steam, using vkcube/glxgears for example?

flightlessmango avatar Jan 16 '24 14:01 flightlessmango

Does this work as expected outside of steam, using vkcube/glxgears for example?

Oddly enough, it does.

purplebar0 avatar Jan 16 '24 14:01 purplebar0

Actually it works in steam on my end, might have been fixed since 0.7.0

flightlessmango avatar Jan 16 '24 15:01 flightlessmango

reopen if still an issue

flightlessmango avatar Jul 09 '24 04:07 flightlessmango