When I use Nvosd object, inference speed goes down

I draw rectangle object it cover whole screen and added background color for sort of warning alarm.
Why large object of nvosd makes speed down? I couldn’t know exact cause.
Here is my code.
image