1~5 fps output when run deepstream_app including dsexample

I’ve faced a major problem when I’m run Deepstream test3 including dsexample, it will run perfectly (24~29 fps) but when I’m running Deepstream app including dsexample, it will give an unacceptable output which is (1~5 fps). Very slowly.

Note that:
This problem I’ve faced both of Nvidia Jetson nano and Xavier. I’ve used good power connections. If you are don’t understand my question please replay me I will send my code and share this problem video link from youtube.

Please check this post.
You may customize dsexample for your usecase and remove unnecessary codes.