We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a sketch that records video at 30fps with a 3D model overlay. The problem is that the 3D model renders much slower than the necessary framerate, which causes missed frames in the video feed that translates into double or triple the expected playback speed. The 3D model is necessarily complex as it's a time-series waterfall chart.
Is it possible to render a 3D model in a separate thread onto a PGraphics P3D surface while the draw() method continues re-drawing the previous frame until a new frame of the 3D model is ready?
My sketch is a bit of a mess at the moment, as it's also reading serial (this I was able to do in a separate thread using a ring buffer) and blending camera images for motion blur, which can keep the pace. I can try to make an MCVE if anyone thinks this is even remotely possible. TIA!