- This topic has 6 replies, 2 voices, and was last updated 8 months, 2 weeks ago by Grant [Tobii].
- 11/07/2022 at 17:03 #22248
I recently added the latest TobiiXR Unity plugin to my Unity project to collect data as to where (which part of an npc) a user is looking during the experience. I use a HTC Vive Pro eye headset to collect the eye tracking data, using the sranipal software. However, the Tobii software has a very high usage according to my Unity profiler. Starting the project with the Tobii software enabled makes the scene laggy. Does anybody know a solution to this problem, because I wouldn’t think that eye tracking uses that much resources.
As seen on the profiler screenshot below, the blue is almost 100% tobii software. Even an empty scene is laggy with the software enabled, only when using VIVE eye tracking data (so not when using headset vector / mouse data). The function that takes much time is called ‘TobiiXR_Lifecycle.Update()’.
Thanks in advance!12/07/2022 at 11:08 #22254Grant [Tobii]Keymaster
Hi @jelleman, To be able to see exactly what is taking time, please switch the profiler view from “Timeline” to “Hierarchy”, and take a screenshot of the call stack fully expanded (all the children of “TobiiXR_Lifecycle.Update()”). Thereafter, we should have a better idea of what is happening. Best Wishes.12/07/2022 at 11:28 #22255
Thanks for the fast reply!
I will post a screenshot of the hierarchy asap (in an hour or two)
Regards12/07/2022 at 12:55 #22256
This is the hierarchy view. It does not seem to show much..
Regards12/07/2022 at 13:21 #22258
I looked through the code myself and found where the delay is coming from but I do not know if this is normal. The delay comes from the ‘Tick()’ function in the HTCProvider class. As soon as one of the invoke lines is executed (line 109, 116, 121, 127, 128, doesn’t matter how much or which one is executed, I suppose these are calls to SRanipal?), the delay is 10ms. Otherwise, when these lines are not present, there is minimal delay. I am running SRanipal 126.96.36.199 but I already ran the latest version with the same problem.
Regards19/07/2022 at 12:29 #22268
Any updates on this problem?
Thanks in advance19/07/2022 at 13:58 #22271Grant [Tobii]Keymaster
Hi @jelleman, good that you identified that the delay is coming from HTC own SDK.. Did you try already posting on their own forum about this? I’m afraid as the root is no longer the Tobii SDK specifically, we cannot currently assign resources to investigating. Apologies for any inconvenience.
- You must be logged in to reply to this topic.