UDP data from sensor causing Max to lag/freeze on Windows 11

F_Dos's icon

Hi all,

I'm receiving UDP data from a sensor in Max at 200Hz, and the patch becomes very laggy and seems to get stuck while data is streaming in. As soon as the sensor stops sending data, Max goes back to running smoothly.

System specs:

  • Windows 11

  • Intel Ultra 7 265

  • 32GB RAM

I've run the exact same patch on a different machine with very similar specs, and it runs fine there — no lag or freezing. So it seems specific to this machine or its configuration rather than the patch itself.

Any idea how to solved it?

max specs:

F_Dos's icon

So I think it was related to the quality of the 4-camera recording. I changed the jit.grab to 1280x720, and that's what caused Max to lag. When I changed it back down to jit.grab 320x240, it started working smoothly again.

TFL's icon

what happens to the camera feeds after getting out of jit.grab? There is possibly room for improvement there. Typically doing any image processing with jit.gl objects, enabling output_texture on the jit.grab, and avoiding sending the textures back to matrix world, but it's hard to give better advice without seeing the patch.

Also, your laptop doesn't have a dedicated GPU, right?

F_Dos's icon

what happens to the camera feeds after getting out of jit.grab? There is possibly room for improvement there

it is going into [jit.vcr @codec h264 @fps 15]

Also, your laptop doesn't have a dedicated GPU, right?


No, just integrated Intel graphics.

F_Dos's icon

patch:

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

F_Dos's icon

The worse issue is the unique id changing even after computer restart! this is not possible to keep track of cameras as needed. Any idea how to get this solved? is there maybe a way to prevent windows from changing port ids on reset?