Fps drop on jetson xavier

Hello,

My program is running in the thread it is just displaying the NumPy array from a special camera. I am using Imshow() to display it. Sometimes I am getting 20 fps( same as source) other times it drops to 3 fps ( means program loop stuck for a few seconds). I need help.

I tried without Imshow() if there is any issue with another element. Without OpenCV ( imshow()) loop works without any delay.

a minimal reproducible example please

The code is simple.

In while (1) loop I am receiving array at 20 fps camera. I am only displaying the array using imshow().

This simple code creates fps drops sometimes ( means loop is hanging). The program is running in the thread. No other part of the program is interfering I check by removing the imshow(). No delay in loop