Skip to content

Commit 03f540a

Browse files
committed
UpdateClient for each viewer.
1 parent ccad22d commit 03f540a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,22 @@ void OnPreCull()
195195
for (uint viewerIndex = 0; viewerIndex < _viewerCount; viewerIndex++)
196196
{
197197
VRViewer viewer = Viewers[viewerIndex];
198+
199+
//update the client
200+
UpdateClient();
201+
198202
//update the viewer's head pose
199203
viewer.UpdateViewerHeadPose(DisplayConfig.GetViewerPose(viewerIndex));
200204

201-
//have each viewer update its eyes
205+
//each viewer update its eyes
202206
viewer.UpdateEyes();
203207
}
204208

205-
// Remember to reenable.
209+
// Flag that we disabled the camera
206210
_disabledCamera = true;
207211
}
208212

213+
//This couroutine is called every frame.
209214
IEnumerator EndOfFrame()
210215
{
211216
while (true)

0 commit comments

Comments
 (0)