nickguletskii / GLXOSD

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
https://glxosd.nickguletskii.com
MIT License
123 stars 20 forks source link

How to disable all options to show only "FPS : X" like Steam #96

Open Kzimir opened 7 years ago

Kzimir commented 7 years ago

Hi,

I would like to know where and how i can disable all options to show only "FPS : X". I want even to remove "Frame Timing", "AFD" and "ODSATSPF".

Thanks

nickguletskii commented 7 years ago

Thank you for using GLXOSD!

  1. Open glxosd_config.lua. For details on how to find it, please see the documentation.
  2. Disable all osd_data_providers except "plugins/OSD/dataproviders/FrameDataProvider" by chaning enabled = true to enabled = false.
  3. In FrameDataProvider's configuration, change data_order to only contain "FPS".
Kzimir commented 7 years ago

For 3-, it's formatterfunction.lua in /etc/glxosd/OSD/dataproviders/FrameDataProvider ? Because when i remove all options except FPS in "local DATA_WRITERS", glxosd has an error message when i launch it :

Frame data provider plugin error: formatter function threw and error: ...SD/dataproviders/FrameDataProvider/formatterfunction.lua:53: attempt to call a nil value stack traceback: /usr/share/glxosd//glxosd/util/util.lua:24: in function 'log_error' ...//glxosd/plugins/OSD/dataproviders/FrameDataProvider.lua:124: in function 'get_text' /usr/share/glxosd//glxosd/plugins/OSD/OSD.lua:65: in function 'func' /usr/share/glxosd//glxosd/plugins/OSD/OSD.lua:35: in function </usr/share/glxosd//glxosd/plugins/OSD/OSD.lua:35> [C]: in function 'pcall' /usr/share/glxosd//glxosd/plugins/OSD/OSD.lua:35: in function 'each_data_provider' /usr/share/glxosd//glxosd/plugins/OSD/OSD.lua:64: in function 'render' /usr/share/glxosd//glxosd/Context.lua:57: in function 'func' /usr/share/glxosd//glxosd/Context.lua:29: in function </usr/share/glxosd//glxosd/Context.lua:29> [C]: in function 'pcall' /usr/share/glxosd//glxosd/Context.lua:29: in function 'each_plugin' /usr/share/glxosd//glxosd/Context.lua:56: in function 'render' /usr/share/glxosd//glxosd/Main.lua:97: in function </usr/share/glxosd//glxosd/Main.lua:96> [C]: in function 'xpcall' /usr/share/glxosd//glxosd/rendering/normalise_gl_state.lua:168: in function 'do_when_gl_state_is_normal' /usr/share/glxosd//glxosd/Main.lua:96: in function </usr/share/glxosd//glxosd/Main.lua:79>

Kzimir commented 7 years ago

Ok, i found it, it was the wrong file.

Now, i have : Frame timings FPS : X

How to remove Frame Timing ?

nickguletskii commented 7 years ago

Set enabled to false in DEFAULT_HEADER_CONFIG.

Patola commented 6 years ago

I think this information should be part of README and/or documentation right from the start. Customization of this software is very counterintuitive and complex, it's a turn-off. It is not a nice design to be required to understand so much of internals of the program to make a simple run. Maybe a way to mitigate it would be by shipping sample configuration for common cases, like showing only the FPS?