Drivers settins?

flatpak is a container that creates an environment with drivers, e.g. nvidia graphics driver, and settings that enable a program to run well.
It is costly in way of space and also since the container limits the communication with the surrounding environment the program has some limitations.

I try to fix a program that runs perfectly in flatpak but can not be run well when installed natively in my environment .
It could have something to do with the graphics driver since the the flatpak version can tap in to the gpu and utilize it to run smoothly, can go up to 60% load, while on the other hand the natively can not (can only reach 24) and movement becomes lagging with freezes and stutters.

I was thinking of looking at the settings of the version inside the flatpak container to see if I could use the same with my natively installed app.

I thought that the settings must reside in a file like this inside the flatpak container: i.e.:

.nvidia-settings-rc
nvidia.conf
xorg.conf
.xinitrc

I do not have any of them in the flatpak container. A search for nvidia, xorg and xinit in the flatpak container (/var/lib/flatpak/) yealds these files:

org.freedesktop.Platform.GL.nvidia-470-63-01
org.freedesktop.Platform.GL.nvidia-470-63-01
org.freedesktop.Platform.GL.nvidia-470-63-01
libnvidia-glvkspirv.so.470.63.01
libnvidia-cbl.so.470.63.01
libGLX_nvidia.so.470.63.01
libnvidia-ml.so.470.63.01
libnvidia-ifr.so.470.63.01
libnvidia-compiler.so.470.63.01
libnvidia-encode.so.470.63.01
libnvidia-allocator.so.470.63.01
libnvidia-ptxjitcompiler.so.470.63.01
libEGL_nvidia.so.470.63.01
libnvidia-vulkan-producer.so.470.63.01
libGLESv1_CM_nvidia.so.470.63.01
libnvidia-rtcore.so.470.63.01
libnvidia-fbc.so.470.63.01
libnvidia-cfg.so.470.63.01
libglxserver_nvidia.so.470.63.01
libGLESv2_nvidia.so.470.63.01
nvidia_icd.json
nvidia_layers.json
10_nvidia.json
libnvidia-opticalflow.so.470.63.01
libnvidia-eglcore.so.470.63.01
libvdpau_nvidia.so.470.63.01
libnvidia-glsi.so.470.63.01
libnvidia-ngx.so.470.63.01
libnvidia-tls.so.470.63.01
libnvidia-glcore.so.470.63.01
libnvidia-opencl.so.470.63.01
libEGL_nvidia.so.0
libGLESv2_nvidia.so.2
libGLX_nvidia.so.0
libnvidia-ptxjitcompiler.so.1
libvdpau_nvidia.so
libnvidia-encode.so.1
libnvidia-opencl.so
libnvidia-ml.so.1
libnvidia-ml.so
libnvidia-fbc.so.1
nvidia.icd
nvptx–nvidiacl.bc
nvptx64–nvidiacl.bc
nvidia_drv_video.so
nvptx–nvidiacl.bc
nvptx64–nvidiacl.bc

xorg
xorg.lst
xorg.xml
xorg.py
xorg.cpython-38.pyc
xorg
xorg.lst
xorg.xml

There is nothing related under ‘~/.local/share/flatpak/’,
where user settings for flatpak should reside.

Do you have a clue in what file I can find the settings for the nvidia driver in this flatpak container?
E.g. one of the prior files or some other file I should search for?