From 294be21392836c2b5a1bf9bd2c394ee6d409c4b8 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Sun, 17 Mar 2019 20:25:53 -0700 Subject: [PATCH] d/oh: Populate nominal frame interval --- src/xrt/drivers/ohmd/oh_device.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xrt/drivers/ohmd/oh_device.c b/src/xrt/drivers/ohmd/oh_device.c index 957e9d399..29f6b7ee7 100644 --- a/src/xrt/drivers/ohmd/oh_device.c +++ b/src/xrt/drivers/ohmd/oh_device.c @@ -297,6 +297,10 @@ oh_device_create(ohmd_context *ctx, ohd->base.views[1].rot = u_device_rotation_ident; // clang-format on + // Default to 90FPS + ohd->base.screens[0].nominal_frame_interval_ns = + time_s_to_ns(1.0f / 90.0f); + // Find any needed quirks. bool quirk_rotate_right = false; bool quirk_rotate_inwards = false; @@ -309,6 +313,9 @@ oh_device_create(ohmd_context *ctx, if (strcmp(prod, "3Glasses-D3V2") == 0) { quirk_rotate_right = true; quirk_left_center_pano_scale = true; + // 70.43 FPS + ohd->base.screens[0].nominal_frame_interval_ns = + time_s_to_ns(1.0f / 70.43f); } if (strcmp(prod, "HTC Vive") == 0) {