Abnormal running time on Jetson TX2 board

I am running a stereo vision program on TX2 board. when I run it through GUI, running time of each reconstruction is very different(from 500ms to 1400ms). but when I run it in a for loop, the running time is more stable(400ms to 600ms). Anyone else has run into this issue?

BTW this issue does’t appear in window platform(a laptop with a Geforce 940M)


Not sure if this is caused by dynamic frequency.

Could you fix the CPU/GPU frequency to the max and give it a try?

sudo ./jetson_clocks.sh


It works like a charm!
Thanks. AastaLLL