ARVRCamera and VideoPlayer unstability

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By frankiezafe


I’m trying to map a video texture in a VR environment.
To do so, i have a ARVRCamera in the scene inside a sphere.
At first, i had a huge issue with framerate > godot is by default a single-safe thread process. This implies that video player was delaying the rendering of the 3d world, and goodbye the 90fps required for the Vive.
After switching the engine into Mutli-thread mode, the result was perfect, even if the video was lagging from time to time.
I now have a weird issue: 3 times out of 4, the video texture can not be mapped to the sphere, or the update is not happening, without any error or feedback from the engine…

Does anyone has experiment the same issue?

It seems that the video playback must be started AFTER the ARVRCamera: if I delay the playback of the video, everything is fine…

frankiezafe | 2020-09-24 09:37

Hello, how did you switch to multithreading mode in Godot? I have a video that runs fine on my laptop, but once i run it on my Quest 2, it starts lagging.

CoopR_26 | 2022-12-02 12:35