Make delay in showing camera output

Hello, I wanna see camera output of apple vision pro with a little delay, for example 2ms. I tried some approach but all of it just delay at the start not all frame. appreciate any help.

Make delay in showing camera output
 
 
Q