Why is encoding time increasing?

hi guys,

I’m recording my desktop screen by using Video Codec SDK 12 and DXD11, and encountered a problem

the screen is output at a stable fps 60, and at the begining, my recording app gets all the encoded frames, that is 60 fps,
after a shot while, time used by the codec process increased up to 20ms, resulting the recording app gets only 30 fps

below are the system info and app log

System info:

Windows 22H2
Driver: 536.40
Video Codec SDK 12.0
Hardware: NVIDIA Quadro P2000

Log:

INFO  [ 9700]NvEncoder/NvEncoderCLIOptions.h:392 Encoding Parameters:
                        codec        : h264
                        preset       : p5
                        tuningInfo   : lowlatency
                        profile      : auto
                        chroma       : yuv420
                        bitdepth     : 8
                        rc           : vbr
                        fps          : 60/1
                        gop          : INF
                        bf           : 0
                        multipass    : 0
                        size         : 2560x1440
                        bitrate      : 16000000
                        maxbitrate   : 60000000
                        vbvbufsize   : 0
                        vbvinit      : 0
                        aq           : disabled
                        temporalaq   : disabled
                        lookahead    : disabled
                        cq           : 0
                        qmin         : P,B,I=0,0,0
                        qmax         : P,B,I=0,0,0
                        initqp       : P,B,I=0,0,0

INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 5.5 k, delay: 11.1 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 8.9 k, delay: 11.4 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 3.9 k, delay: 11.6 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 6.3 k, delay: 11.4 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 5.8 k, delay: 11.5 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 4.1 k, delay: 11.5 ms
INFO  [ 1364]codec.cpp  :268 screen: 0 send fps: 60.5, size: 6.1 k, delay: 11.5 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 60.0, size: 7.8 k, delay: 12.8 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 60.5, size: 7.8 k, delay: 12.6 ms
...
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 19.5 k, delay: 21.1 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.4, size: 8.3 k, delay: 21.4 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 9.8 k, delay: 22.6 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.2, size: 11.0 k, delay: 21.3 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 14.9 k, delay: 21.2 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.2, size: 9.9 k, delay: 21.0 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 8.9 k, delay: 21.1 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 8.4 k, delay: 21.7 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 7.9 k, delay: 21.5 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.2, size: 13.2 k, delay: 21.9 ms
INFO  [10752]codec.cpp  :268 screen: 0 send fps: 30.3, size: 8.2 k, delay: 21.8 ms

the question is, why the time is increasing?
thanks