Skip to content

Commit c64d00f

Browse files
committed
Make the eye call update in OnPreRender, not OnPostRender.
1 parent f25043b commit c64d00f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OSVR-Unity/Assets/OSVRUnity/src/VREye.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ private void SetViewportRects()
130130
}
131131
}
132132

133-
//Called after a camera finishes rendering the scene.
133+
//Called before a camera renders the scene.
134134
//the goal here is to update the client often to make sure we have the most recent tracker data
135135
//this helps reduce latency
136-
void OnPostRender()
136+
void OnPreRender()
137137
{
138138
clientKit.context.update();
139139
}

0 commit comments

Comments
 (0)