sensics / OSVR-RenderManager

Apache License 2.0
64 stars 45 forks source link

Asymmetric Overfill #282

Open robsonswiss opened 7 years ago

robsonswiss commented 7 years ago

Hi

Is it possible to change the renderoverfillfactor to be asymmetric? Or even quadrant based? With the dual displays I find that I only need about 1.2 inwards, however 1.4 outwards, which means some wasted rendering inwards when setting to 1.4.

It's not really a problem for myself but I believe a performance gain can be had if the overfill factor was asymmetric.

russell-taylor commented 7 years ago

Sorry for the slow reply. CES madness is in full throttle.

This seems like something that could be done by generalizing the configuration file and then making the RenderManager innards respond to both the existing the new specification. All of the code to handle this is in the open-source portion of RenderManager. It may only involve changes to the viewport and projection generation functions in the base class as well as carrying the new parameters around.

It seems like this should be done symmetrically, with the specification being something like "inner, outer, upper, lower" rather than "left, right, top bottom".