Hi,
Please check
DeepStream Reference Application - deepstream-app — DeepStream 6.1.1 Release documentation
For type = 2 or 5, the frames are rendered and fps is capped by display mode(generally 1080 60fps). you can run the command to get display mode:
root@tx2:~# cat /sys/class/graphics/fb0/mode
U:1920x1080p-59