#Rendering lag due to some code

1 messages · Page 1 of 1 (latest)

warm island
#

Hi everyone. I'm having trouble with some code that I use in Unity. The idea is that I get the tracking info of an object from a camera in real world and I use this info in Unity to move accordingly an object in the simulation. The problem is that inside the function that takes the info (NDIApplyTransformation in photo) the communication between computer and camera is based on a buffer read and until the read is not available the function does not give any info. I've tried using thread as in photo (even with lock of c#) but the lag remains. Can anyone suggest me a solution?

outer bridge
#

Have you run the profiler to make sure that this is the actual root of the problem?

glacial geode
#

Also !code

untold tuskBOT
outer bridge