Forum Discussion
someone82
4 years agoHonored Guest
Quest 2 does not update Camera.targetTexture properly
Unity forum post here: https://forum.unity.com/threads/camera-targettexture-lags-behind-main-camera.1242781/
I was investigating an issue with Camera.targetTexture not updating properly. Then, I realized it works just fine in Unity's Game screen, but not on the Quest 2.
I have a main camera controlled by a TrackedPoseDriver. And a secondary camera that follows the position and rotation of the main camera, but with an offset in position.
The secondary camera has a targetTexture, and I render the targetTexture on a Quad.
For some reason, the targetTexture makes it look like the secondary camera is always "lagging behind" the main camera.
Again, this "lagging behind" does not happen on the Game screen, only on the Quest 2's screen.
When I don't move the main camera, the image is exactly what I expect to see.
When I do move the main camera, the image is updated a few frames behind, effectively lagging or having a delayed response.
How can I fix this so that Camera.targetTexture updates as often as it should?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 2 years ago
- 10 months ago
- 5 months ago