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

New Feature: Allow framerate limiter #90

Closed XenonPK closed 1 year ago

XenonPK commented 7 years ago

Before finding out about glxosd, I was using libstrangle to limit my fps , now your function overrides coincide with the ones libstrangle is using, specifically glXSwapBuffers. Trying to LD_PRELOAD both libraries incurs in segmentation fault. Seeing as glxosd already has support for shortcuts , why not add another shortcut for capping/uncapping the framerate , and use an algorithm similar to the one used in libstrangle? I know this may be a bit more work, but I think it would be a feature very much appreciated by people with optimus laptops using nvidia-prime ( there is no way to do vsync and/or limit the framerate in any way without external tools). The way it stands now, I can either cap the framerate or get the osd, not both. Maybe in the next major version?

nickguletskii commented 7 years ago

Thanks for reminding me about this, I planned to add this after the initial release but ended up forgetting about it.

I don't have much time at the moment (it's mostly the packaging process that is time consuming), but I will implement it once I get the chance.