Hi all,
I'm facing an issue when using multiple cameras and different threading models.
In my scene I have a slave camera which renders to a texture (using FBO + texture attachment) in PRE_RENDER order; the texture is then attached to a geometry which in turns is rendered by the main viewer camera.
I have verified that both cameras' view matrices are updated consistently during the same frame update traversal (as they are linked one another).
When I run this setup with SingleThreaded model, everything works as expected.
If I run it with DrawThreadPerContext (default on Windows), there is a one-frame delay of the RTT camera result, meaning that during frame N the main camera sees the render result of frame N-1 in the FBO camera texture attachment.
I don't think this is an expected behavior.
Is there a way to fix the issue without switching to SingleThreaded mode?
Thank you,
Riccardo