d/oh: Populate nominal frame interval

This commit is contained in:
Ryan Pavlik 2019-03-17 20:25:53 -07:00
parent 3e7b9169d6
commit 294be21392

View file

@ -297,6 +297,10 @@ oh_device_create(ohmd_context *ctx,
ohd->base.views[1].rot = u_device_rotation_ident; ohd->base.views[1].rot = u_device_rotation_ident;
// clang-format on // 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. // Find any needed quirks.
bool quirk_rotate_right = false; bool quirk_rotate_right = false;
bool quirk_rotate_inwards = false; bool quirk_rotate_inwards = false;
@ -309,6 +313,9 @@ oh_device_create(ohmd_context *ctx,
if (strcmp(prod, "3Glasses-D3V2") == 0) { if (strcmp(prod, "3Glasses-D3V2") == 0) {
quirk_rotate_right = true; quirk_rotate_right = true;
quirk_left_center_pano_scale = 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) { if (strcmp(prod, "HTC Vive") == 0) {