amonakov / primus

Low-overhead client-side GPU offloading
ISC License
216 stars 20 forks source link

"primus: warning: recreating incompatible pbuffer" on Oculus World demo #158

Open Dirbaio opened 9 years ago

Dirbaio commented 9 years ago

I'm trying to run the Oculus World demo using primusrun.

It works, but this error is spammed continuously (every frame I'd say) in the terminal:

primus: warning: recreating incompatible pbuffer

And the framerate is terrible. (~4fps)

It works fine with the Intel graphics (40fps) and with optirun (50fps)

I'm running Arch Linux on GNOME 3.14.3, xorg-server 1.16.3-2, primus 20150118-2. Everything is latest version (if you need to know the version of anything else just ask) uname, lspci, glxinfo here: https://dirbaio.net/d/paste/13bc2bcdefafa1a2.txt

I'm quite stuck here. I'd really love to run Oculus with primus, since 50fps is not enough for a great VR experience. Any help on how to debug this will be greatly appreciated.

Thank you!

Dirbaio commented 9 years ago

Some more info: If I comment out these lines the issue goes away! https://github.com/amonakov/primus/blob/7e21554eb298ad56e164faa81e0492368afc66ac/libglfork.cpp#L666-672

There are seemingly no adverse effects, but I guess these lines have a reason to be there, so this is obviously not a good fix.

amonakov commented 9 years ago

Does this problem appear with other demos?

Could you capture a trace with apitrace?

Since you're able to try it now, how's performance and latency? Does PRIMUS_SYNC=1 make a noticeable difference?