Phys simulation stops when jit.pwindow off screen

Joel Powell's icon

Hello πŸ‘‹

I was just wondering if anyone knew why my jit.phys simulation stops when the jit.pwindow object is not visible on the screen.

This happens even if you have just scrolled elsewhere in the max window.

I need to be able to resolve this as the pwindow is going in a maxforlive device which of course will not always be visible.

Many thanks for your help!

Rob Ramirez's icon

I would set this up with an invisible jit.world (@visible 0) and a capturing jit.gl.node (@capture 1), so that the draw calls are not bound to visibility of the context.

Max Patch
Copy patch and select New From Clipboard in Max.


or even simpler (if applicable to your situation) capture directly out of the jit.world and use the jit.world's internal phys context:

Max Patch
Copy patch and select New From Clipboard in Max.

Joel Powell's icon

Hey Rob, thanks for your response!

You may have seen my emails but I managed to resolve this just by disabling automatic on the phys.world and banging it directly 😊