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

GLXOSD doesn't work with primusrun, unless using --steam flag. #16

Open 3vi1 opened 9 years ago

3vi1 commented 9 years ago

Hello! I just discovered GLXOSD today, and ran into an issue/workaround when testing with your current Ubuntu PPA.

GLXOSD worked fine when using the Intel HD4000 chipset in my laptop, but if I used it with primusrun (which is working fine with all my apps/games) to send the output to the GK104M [GeForce GTX 670MX] video I received no output window (i.e. the glxgears/spheres windows and animations never display).

After reading your config/FAQ/Usage docs, I tried the longshot of using primusrun in conjunction with the "--steam" parameter, even though I wasn't testing with steam games nor did I even have steam loaded at the time... and amazingly it worked! I haven't looked at your code to see what the --steam parameter is actually doing, but it might be worth noting for others that it may help other use glxosd with primusrun even when running non-steam apps.

Testing:

vblank_mode=0 glxspheres64: works - 234.811252 frames/sec vblank_mode=0 primusrun glxspheres64: works - 386.956962 frames/sec vblank_mode=0 glxosd glxspheres64: works - 223.875207 frames/sec vblank_mode=0 primusrun glxosd glxspheres64: No window displayed, CPUs max out until Ctrl-C. vblank_mode=0 glxosd primusrun glxspheres64: No window displayed, CPUs max out until Ctrl-C. vblank_mode=0 primusrun glxosd --steam glxspheres64: works - 388.984218 frames/sec vblank_mode=0 glxosd --steam primusrun glxspheres64: works - 389.696274 frames/sec

My testing was done with Ubuntu 14.10beta, and the latest Nvidia 343.22 drivers from xorg-edgers.

Nibodhika commented 8 years ago

I can confirm this behavior.