In our Unity app we have a native android plugin that uses Android media projection to stream the screen capture via OpenTok.
The streaming runs on a separate thread in Android/Java to minimize impact on the Unity application.
Sometimes (about 40% of our tests), the right eye of the headset starts stuttering/lagging when we stream our screen. The left eye is smooth as normal but the right lags for some reason. Other times (about 60% of our tests), we have no problem in the right eye at all. It seems random to us. We think this is weird because even with the lag/stutter in the right eye, the Unity profiler still says we have over 60fps (see img).
I profiled this with the snapdragon profiler too and cpu usage when streaming is always 25% to 36%, with or without lag in the right eye. This leaves me to believe that it is not a performance issue.
I know this is a tough question but could you have any idea of what is making the right eye lag?