Maximum pre-rendered frames option

Is there a way to change “maximum pre-rendered frames” option on linux. Couldn’t find it in nvidia-settings gui, and no option in output of:
nvidia-settings -c :0.0 --query all

Default value is 2, that leads to 2 frames more latency when processing captured video, that is significant when working in 25 FPS video mode.

nvidia driver version: 415.25

my system:
uname -a
Linux fp-gentoo 4.14.83-gentoo #1 SMP PREEMPT Wed Mar 6 14:24:00 UTC 2019 x86_64 Intel® Core™ i9-7920X CPU @ 2.90GHz GenuineIntel GNU/Linux

See this:

Thank you. It worked for me. Where can I get a list of such environment variables used by nvidia driver?

I don’t know of any comprehensive list but you could use this approach:
to have the driver spill it out.