Skip to content

Commit 9bfb031

Browse files
committed
Use the oversample factor for the reccommended target size
1 parent f0e16cf commit 9bfb031

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/OSVRTrackedDevice.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,11 @@ bool OSVRTrackedDevice::IsDisplayRealDisplay()
222222

223223
void OSVRTrackedDevice::GetRecommendedRenderTargetSize(uint32_t* width, uint32_t* height)
224224
{
225-
//const double overfill_factor = renderManagerConfig_.getRenderOverfillFactor();
226-
const double overfill_factor = 1.0;
225+
const double oversample_factor = renderManagerConfig_.getRenderOversampleFactor();
227226
const auto bounds = getWindowBounds(display_, scanoutOrigin_);
228227

229-
*width = static_cast<uint32_t>(bounds.width * overfill_factor);
230-
*height = static_cast<uint32_t>(bounds.height * overfill_factor);
228+
*width = static_cast<uint32_t>(bounds.width * oversample_factor);
229+
*height = static_cast<uint32_t>(bounds.height * oversample_factor);
231230
OSVR_LOG(trace) << "GetRecommendedRenderTargetSize(): width = " << *width << ", height = " << *height << ".";
232231
}
233232

0 commit comments

Comments
 (0)