OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
98 stars 38 forks source link

Flush buffers #192

Closed DuFF14 closed 7 years ago

DuFF14 commented 7 years ago

Some changes to improve latency/performance, including forcing optimal player settings, and calling GL.Flush() in Update loop, after rendering each surface, and at the end of each frame, to keep the GPU busy (only applicable in Unity 5.4).

DuFF14 commented 7 years ago

Here are two Palace demo builds, one with and one without these changes. I've found that the GLFlush version is giving me a little better performance. NSight Debugger shows a gain of at least a few fps, from ~85fps to solid 90fps in direct mode on a 980. Can anyone else verify a performance gain here? https://drive.google.com/drive/folders/0B0X-T5b2-zcOOElOLW8tVjJJRnc?usp=sharing

DuFF14 commented 7 years ago

Tested a significant gain on the 960 as well, going to merge this...